Can we run next app without port?
Unanswered
Cuvier’s Dwarf Caiman posted this in #help-forum
Cuvier’s Dwarf CaimanOP
I want to run app on http://localhost but all the js/css and static images path can be with port http://localhost:3000.
4 Replies
PORT=80 npm run dev
yeah you can use
-p 80 or PORT env var: https://nextjs.org/docs/app/api-reference/next-cli#productionbut fyi "no port" just means 80 or 443 (for https)
Cuvier’s Dwarf CaimanOP
Thanks for the quick response