DEV Community

Discussion on: Day 28 of #100DaysOfCode: Create the Proxy for Next.js application

dbredvick profile image

I'd highly recommend avoiding custom servers in Next.js applications unless you have a very good use case.

The Next.js & Vercel teams have mentioned using a custom server opts you out of the Next.js happy path 🙁

Instead, simply use the getServerProps method or make a serverless func in pages/api and go from there.

ryanpayso13 profile image

How do you create a dev proxy then? If I have my local next instance on port 3000 and my server on 8080?