DEV Community

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

Collapse
 
dbredvick profile image
drew.tech

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.

Collapse
 
ryanpayso13 profile image
RyanPayso13

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