To run a Nuxt 3 application with client-side rendering using node_env=production, you need to do the following:
Build your application by running the command nuxt build
Set the NODE_ENV
environment variable to production
by running the command:
export NODE_ENV=production
nuxt start
Your Nuxt 3 application with client-side rendering should now be running in production mode.
Note: If you are using a process manager like PM2, you can set the NODE_ENV
environment variable directly in the process configuration.
Asked: 2021-08-22 11:00:00 +0000
Seen: 10 times
Last updated: Jul 19 '21