The preview command starts a server to preview your application after the build command.
npx nuxi preview [rootDir] [--dotenv]
preview command starts a server to preview your Nuxt application after running the
build command. The
start command is an alias for
preview. When running your application in production refer to the Deployment section.
|The root directory of the application to preview.|
|Point to another |
This command sets
production. To override, define
NODE_ENV in a
.env file or as command-line argument.
.envfile will be loaded into
process.env. (However, in production you will need to ensure your environment variables are set yourself.)