Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: added documentation for ignoreEnv option #1323

Draft
wants to merge 2 commits into
base: v2
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -181,6 +181,13 @@ fallback: 'fallbackPage.html'

_Note: Multiple services (e.g. Netlify) detect a `404.html` automatically. If you configure your web server on your own, please consult its documentation to find out how to set up an error page (and set it to the `404.html` file)_

## ignoreEnv

- Type: `Boolean`
- Default: `false`

Ignore environment changes when running `nuxt generate`. This will ignore `process.env` and `env` when ensuring webpack build. It can be useful when generating different sites using the same code base.

## interval

- Type: `Number`
Expand Down
Expand Up @@ -183,6 +183,12 @@ fallback: 'pageDeFallback.html'

_Note: De nombreux services (ex: Netlify) détectent une `404.html` automatiquement. Si on est en charge de la configuration de notre propre serveur web, il faudra consulter la documentation pour trouver comment définir une page d'erreur (et la passer à `404.html`)._

## ignoreEnv

- Type: `Boolean`
- Par défault: `false`

Ignore les changements à l'environnement durant l'exécution de `nuxt generate`. Cette option permet d'ignorer `process.env` et `env` lors de la vérification du build webpack. Elle peut être utile lorsqu'on génère plusieurs site avec le même projet Nuxt.js.
## interval

- Type: `Number`
Expand Down