Netlify dev + next

Hey guys,
Using a Next.js project with netlify. Now when I try to integrate functions, the functions are not availabe under /.netlify/functions/{func_name} because next is using port 3000 and netlify using port 8888.

There is some confusion I don’t quite get here, that netlify serves my project on port 8888, opens the browser with localhost:8888, but then right after the nextjs dev server is serving the project with port 3000 and kill the initial dev server instance.

Any ideas?

Would it be possible to change the port Nextjs is using? I’m wondering if Netlify Dev might be using 3000 behind the scenes somewhere…

Let me know if that helps and if not, we’ll revisit.