Skip to content

Commit f79fabe

Browse files
committed
docs: use ini syntax block highlighting for .env files
1 parent 66e2673 commit f79fabe

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

docs/1.getting-started/3.configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default defineNuxtConfig({
8383
})
8484
```
8585

86-
```bash [.env]
86+
```ini [.env]
8787
# This will override the value of apiSecret
8888
NUXT_API_SECRET=api_secret_token
8989
```

docs/2.guide/2.directory-structure/1.server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ export default defineNuxtConfig({
328328
}
329329
})
330330
```
331-
```bash [.env]
331+
```ini [.env]
332332
NUXT_GITHUB_TOKEN='<my-super-token>'
333333
```
334334
::

docs/2.guide/2.directory-structure/2.env.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Nuxt CLI has built-in [dotenv](https://github.com/motdotla/dotenv) support in de
1515

1616
In addition to any process environment variables, if you have a `.env` file in your project root directory, it will be automatically loaded **at dev, build and generate time**. Any environment variables set there will be accessible within your `nuxt.config` file and modules.
1717

18-
```bash [.env]
18+
```ini [.env]
1919
MY_ENV_VARIABLE=hello
2020
```
2121

docs/2.guide/3.going-further/10.runtime-config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Watch a video from Alexander Lichter showcasing the top mistake developers make
6767

6868
#### Example
6969

70-
```sh [.env]
70+
```ini [.env]
7171
NUXT_API_SECRET=api_secret_token
7272
NUXT_PUBLIC_API_BASE=https://nuxtjs.org
7373
```

docs/2.guide/4.recipes/4.sessions-and-authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ As `nuxt-auth-utils` uses sealed cookies to store session data, session cookies
2929
If not set, this environment variable will be added to your `.env` automatically when running in development mode.
3030
::
3131

32-
```dotenv [.env]
32+
```ini [.env]
3333
NUXT_SESSION_PASSWORD=a-random-password-with-at-least-32-characters
3434
```
3535

docs/3.api/2.composables/use-runtime-config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ It is possible to update runtime config values using a matching environment vari
8282
8383
We can set the environment variables inside the `.env` file to make them accessible during **development** and **build/generate**.
8484
85-
``` [.env]
85+
```ini [.env]
8686
NUXT_PUBLIC_API_BASE = "https://api.localhost:5555"
8787
NUXT_API_SECRET = "123"
8888
```

0 commit comments

Comments
 (0)