Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To run a Nuxt 3 application with client-side rendering using node_env=production, you need to do the following:

  1. Build your application by running the command nuxt build

  2. Set the NODE_ENV environment variable to production by running the command:

export NODE_ENV=production
  1. Start your application with the command 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.