8000 docs: update `.env` section by xuzuodong Β· Pull Request #22369 Β· nuxt/nuxt Β· GitHub
[go: up one dir, main page]

Skip to content

docs: update .env section #22369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 30, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix typo
  • Loading branch information
xuzuodong authored Jul 28, 2023
commit 265deed37a27a1a7017ac0c6fba02c477d3b3059
2 changes: 1 addition & 1 deletion docs/2.guide/2.directory-structure/2.env.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Note that removing a variable from `.env` or removing the `.env` file entirely w

**After your server is built**, you are responsible for setting environment variables when you run the server. Your `.env` file will not be read at this point. How you do this is different for every environment.

For local production preview purpose, we recommand using [`nuxi preview`](https://nuxt.com/docs/api/commands/preview) since using this command, the `.env` file will be loaded into `process.env` for convenience. Note that this command requires dependencies to be installed in the package directory.
For local production preview purpose, we recommend using [`nuxi preview`](https://nuxt.com/docs/api/commands/preview) since using this command, the `.env` file will be loaded into `process.env` for convenience. Note that this command requires dependencies to be installed in the package directory.

Or you could pass the environment variables as arguments using the terminal. For example, on Linux or macOS:

Expand Down
0