Running Next.js prod server locally #7328
shtbik
started this conversation in
Show and Tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I found your great tool and trying to add cache on the Next.js for my fonts files from shared lib. I want to run the Next server locally with the production flag to check that my cache settings work as expected but it looks like that I can't do it.
Env: WSL2 + VS Code + NX console
npx nx build dashboard --prodnpx nx serve dashboard --prod-Cache-Control: public, max-age=0❌npx next start ./dist/apps/dashboard-Cache-control: public, immutable, max-age=31536000✔️Is there a way to run the Next prod server locally? I'll publish the app if needed.
Beta Was this translation helpful? Give feedback.
All reactions