diff --git a/docs/1.getting-started/3.configuration.md b/docs/1.getting-started/3.configuration.md index 17c8cb5ca7..5deea5e215 100644 --- a/docs/1.getting-started/3.configuration.md +++ b/docs/1.getting-started/3.configuration.md @@ -83,7 +83,7 @@ export default defineNuxtConfig({ }) ``` -```bash [.env] +```ini [.env] # This will override the value of apiSecret NUXT_API_SECRET=api_secret_token ``` diff --git a/docs/2.guide/2.directory-structure/1.server.md b/docs/2.guide/2.directory-structure/1.server.md index 3bd95a592c..3fda7f9462 100644 --- a/docs/2.guide/2.directory-structure/1.server.md +++ b/docs/2.guide/2.directory-structure/1.server.md @@ -328,7 +328,7 @@ export default defineNuxtConfig({ } }) ``` -```bash [.env] +```ini [.env] NUXT_GITHUB_TOKEN='' ``` :: diff --git a/docs/2.guide/2.directory-structure/2.env.md b/docs/2.guide/2.directory-structure/2.env.md index 422dde9f90..04c1b62bde 100644 --- a/docs/2.guide/2.directory-structure/2.env.md +++ b/docs/2.guide/2.directory-structure/2.env.md @@ -15,7 +15,7 @@ Nuxt CLI has built-in [dotenv](https://github.com/motdotla/dotenv) support in de 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. -```bash [.env] +```ini [.env] MY_ENV_VARIABLE=hello ``` diff --git a/docs/2.guide/3.going-further/10.runtime-config.md b/docs/2.guide/3.going-further/10.runtime-config.md index 69f9fb9876..e928a6bb1a 100644 --- a/docs/2.guide/3.going-further/10.runtime-config.md +++ b/docs/2.guide/3.going-further/10.runtime-config.md @@ -67,7 +67,7 @@ Watch a video from Alexander Lichter showcasing the top mistake developers make #### Example -```sh [.env] +```ini [.env] NUXT_API_SECRET=api_secret_token NUXT_PUBLIC_API_BASE=https://nuxtjs.org ``` diff --git a/docs/2.guide/4.recipes/4.sessions-and-authentication.md b/docs/2.guide/4.recipes/4.sessions-and-authentication.md index b4f4e4f211..fa0ea894ea 100644 --- a/docs/2.guide/4.recipes/4.sessions-and-authentication.md +++ b/docs/2.guide/4.recipes/4.sessions-and-authentication.md @@ -29,7 +29,7 @@ As `nuxt-auth-utils` uses sealed cookies to store session data, session cookies If not set, this environment variable will be added to your `.env` automatically when running in development mode. :: -```dotenv [.env] +```ini [.env] NUXT_SESSION_PASSWORD=a-random-password-with-at-least-32-characters ``` diff --git a/docs/3.api/2.composables/use-runtime-config.md b/docs/3.api/2.composables/use-runtime-config.md index 91835423ba..ccd94cf68b 100644 --- a/docs/3.api/2.composables/use-runtime-config.md +++ b/docs/3.api/2.composables/use-runtime-config.md @@ -82,7 +82,7 @@ It is possible to update runtime config values using a matching environment vari We can set the environment variables inside the `.env` file to make them accessible during **development** and **build/generate**. -``` [.env] +```ini [.env] NUXT_PUBLIC_API_BASE = "https://api.localhost:5555" NUXT_API_SECRET = "123" ```