Skip to content

Commit

Permalink
Updated exportPathMap docs (vercel#14630)
Browse files Browse the repository at this point in the history
  • Loading branch information
lfades authored and rokinsky committed Jul 11, 2020
1 parent d98bdc7 commit 6769412
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/api-reference/next.config.js/exportPathMap.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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">
Expand Down

0 comments on commit 6769412

Please sign in to comment.