Next.js Discord

Discord Forum

next start showing localhost on production site

Unanswered
Fire ant posted this in #help-forum
Open in Discord
Fire antOP
I use vps server to test my next app, after building i run yarn start, got
yarn run v1.22.19
$ next dev --port=4444
  â–² Next.js 13.5.3
  - Local:        http://localhost:4444

I use .env.production files only, no local env. My package.json script file is
"scripts": {
    "dev": "next dev --port=4444",
    "build": "next build",
    "start": "next start --port=1111",
    "lint": "next lint"
  }

dev and start script shows
 - Local:        http://localhost:4444
instead my website

1 Reply

This would never show your website URL, it just means it's running locally in the container