Skip to content

Commit

Permalink
Mark code in environment-variables.md (withastro#1178)
Browse files Browse the repository at this point in the history
  • Loading branch information
hippotastic authored Aug 3, 2022
1 parent 787f4f0 commit a08762e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/en/guides/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Vite replaces all `import.meta.env` mentions with static values.

For example, use `import.meta.env.PUBLIC_POKEAPI` to get the `PUBLIC_POKEAPI` environment variable.

```js
```js /(?<!//.*)import.meta.env.[A-Z_]+/
// When import.meta.env.SSR === true
const data = await db(import.meta.env.DB_PASSWORD);

Expand Down

0 comments on commit a08762e

Please sign in to comment.