8000 docs: give example of using `--env-file` · nuxt/nuxt@29f6392 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content {"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}

Commit 29f6392

Browse files
committed
docs: give example of using --env-file
closes #32231
1 parent 86562f1 commit 29f6392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/3.api/4.commands/preview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ Option | Default | Description
3939
This command sets `process.env.NODE_ENV` to `production`. To override, define `NODE_ENV` in a `.env` file or as command-line argument.
4040

4141
::note
42-
For convenience, in preview mode, your [`.env`](/docs/guide/directory-structure/env) file will be loaded into `process.env`. (However, in production you will need to ensure your environment variables are set yourself.)
42+
For convenience, in preview mode, your [`.env`](/docs/guide/directory-structure/env) file will be loaded into `process.env`. (However, in production you will need to ensure your environment variables are set yourself. For example, with Node.js 20+ you could do this by running `node --env-file .env .output/server/index.mjs` to start your server.)
4343
::

0 commit comments

Comments
 (0)
0