Updated exportPathMap docs (#14630)
Closes https://github.com/vercel/next.js/issues/14596
This commit is contained in:
parent
b4b68c0b85
commit
0f60377967
1 changed files with 9 additions and 1 deletions
|
@ -44,7 +44,7 @@ The pages will then be exported as HTML files, for example, `/about` will become
|
|||
|
||||
- `dev` - `true` when `exportPathMap` is being called in development. `false` when running `next export`. In development `exportPathMap` is used to define routes.
|
||||
- `dir` - Absolute path to the project directory
|
||||
- `outDir` - Absolute path to the `out/` directory (configurable with `-o`). When `dev` is `true` the value of `outDir` will be `null`.
|
||||
- `outDir` - Absolute path to the `out/` directory ([configurable with `-o`](#customizing-the-output-directory)). When `dev` is `true` the value of `outDir` will be `null`.
|
||||
- `distDir` - Absolute path to the `.next/` directory (configurable with the [`distDir`](/docs/api-reference/next.config.js/setting-a-custom-build-directory.md) config)
|
||||
- `buildId` - The generated build id
|
||||
|
||||
|
@ -67,6 +67,14 @@ module.exports = {
|
|||
}
|
||||
```
|
||||
|
||||
## Customizing the output directory
|
||||
|
||||
[`next export`](/docs/advanced-features/static-html-export.md#how-to-use-it) will use `out` as the default output directory, you can customize this using the `-o` argument, like so:
|
||||
|
||||
```bash
|
||||
next export -o outdir
|
||||
```
|
||||
|
||||
## Related
|
||||
|
||||
<div class="card">
|
||||
|
|
Loading…
Reference in a new issue