Skip to content

Commit

Permalink
Update env.md (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
valcosmos authored Jun 24, 2024
1 parent d6f80b4 commit bc9fa8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/features/env.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Environment Variables and Modes

`Farm` distinguishes between `development` and `production` environments through `process.env.NODE\_ENV`.
`Farm` distinguishes between `development` and `production` environments through `process.env.NODE_ENV`.

In different environments, environment variables are replaced statically, so use static constants to represent environment variables instead of dynamic expressions.

Expand Down Expand Up @@ -61,4 +61,4 @@ export defineConfig({
})
```

For above config example, Farm will load `.env`, `.env.development`, etc from `<root>/env` dir.
For above config example, Farm will load `.env`, `.env.development`, etc from `<root>/env` dir.

0 comments on commit bc9fa8a

Please sign in to comment.