mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 09:33:54 +00:00
docs(configuration): add --envName flag
Documentation accompanying the PR for Nuxt CLI: https://github.com/nuxt/cli/pull/424 (currently in review)
This commit is contained in:
parent
06337da6a4
commit
f0d6e733d3
@ -42,10 +42,17 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
$development: {
|
$development: {
|
||||||
//
|
//
|
||||||
}
|
},
|
||||||
|
$myCustomName: {
|
||||||
|
//
|
||||||
|
},
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To select an environment when running a Nuxt CLI command, simply pass the name to the `--envName` flag, like so: `nuxi build --envName myCustomName`.
|
||||||
|
|
||||||
|
To learn more about the mechanism behind these overrides, please refer to the c12 documentation on [environment-specific configuration](https://github.com/unjs/c12?tab=readme-ov-file#environment-specific-configuration).
|
||||||
|
|
||||||
::tip{icon="i-ph-video-duotone" to="https://www.youtube.com/watch?v=DFZI2iVCrNc" target="_blank"}
|
::tip{icon="i-ph-video-duotone" to="https://www.youtube.com/watch?v=DFZI2iVCrNc" target="_blank"}
|
||||||
Watch a video from Alexander Lichter about the env-aware `nuxt.config.ts`.
|
Watch a video from Alexander Lichter about the env-aware `nuxt.config.ts`.
|
||||||
::
|
::
|
||||||
|
Loading…
Reference in New Issue
Block a user