Unverified Commit 0f603779 authored by Luis Alvarez D's avatar Luis Alvarez D Committed by GitHub

Updated exportPathMap docs (#14630)

Closes https://github.com/vercel/next.js/issues/14596
parent b4b68c0b
...@@ -44,7 +44,7 @@ The pages will then be exported as HTML files, for example, `/about` will become ...@@ -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. - `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 - `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) - `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 - `buildId` - The generated build id
...@@ -67,6 +67,14 @@ module.exports = { ...@@ -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 ## Related
<div class="card"> <div class="card">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment