How to configure the port of the production server?
Here is the vite config
Then
I want it to listen on port 8080.
Build info
4 Replies
automatic-azureOP•3mo ago
pnpm build is just "build": "vite build && tsc --noEmit",like-gold•3mo ago
Use NITRO_PORT or PORT env variable (defaults to 3000)
automatic-azureOP•3mo ago
thanks, sorry for the dumb question.
i just changed the script to
"start": "PORT=8080 node .output/server/index.mjs"
I should have just looked through the build output to figure this out
like-gold•3mo ago
Wasn't a dumb question