mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
docs: update generate
doc to include --dotenv
(#9991)
This commit is contained in:
parent
60c3e2f841
commit
3c7140582b
@ -6,7 +6,7 @@ description: Pre-renders every route of the application and stores the result in
|
||||
# `nuxi generate`
|
||||
|
||||
```{bash}
|
||||
npx nuxi generate [rootDir]
|
||||
npx nuxi generate [rootDir] [--dotenv]
|
||||
```
|
||||
|
||||
The `generate` command pre-renders every route of your application and stores the result in plain HTML files that you can deploy on any static hosting services. The command triggers the `nuxi build` command with the `prerender` argument set to `true`
|
||||
@ -14,3 +14,4 @@ The `generate` command pre-renders every route of your application and stores th
|
||||
Option | Default | Description
|
||||
-------------------------|-----------------|------------------
|
||||
`rootDir` | `.` | The root directory of the application to generate
|
||||
`--dotenv` | `.` | Point to another `.env` file to load, **relative** to the root directory.
|
||||
|
@ -4,7 +4,7 @@ import { defineNuxtCommand } from './index'
|
||||
export default defineNuxtCommand({
|
||||
meta: {
|
||||
name: 'generate',
|
||||
usage: 'npx nuxi generate [rootDir]',
|
||||
usage: 'npx nuxi generate [rootDir] [--dotenv]',
|
||||
description: 'Build Nuxt and prerender static routes'
|
||||
},
|
||||
async invoke (args) {
|
||||
|
Loading…
Reference in New Issue
Block a user