Replies: 1 comment
-
you likely did not boot up the production server, the production server does not change |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to run my project in production mode in CentOS server, When I run
next build && NODE_ENV=production node -r dotenv/config index.js
command, and getting some errors in application, app will be crashed for everyone and all static files in.next/static
directory will be removed. So we need to run that command again!Question: In witch situation static files in
.next
directory will be removed automatically in production run? and how I can prevent that?Beta Was this translation helpful? Give feedback.
All reactions