Ask coding questions

← Back to all posts
Making next.js app
viniciuscgp

Hello, I am making a next.js app, but then npm run dev expects the browser to look at http:localhost:3000 to test, so how can I test my app since my app is on a remote repository ?

Voters
viniciuscgp
Comments
hotnewtop
RoBlockHead

The URL that replit gives you (https://tasks.viniciuscgp.repl.co/) should work

viniciuscgp

@RoBlockHead no, since next.js dev runs on the port 3000... I tryed to change it too but doesn't worked too.

RoBlockHead

@viniciuscgp Replit automatically forwards all ports to port 443 and 80, so you don't need to mess with ports