Skip to content

Commit

Permalink
Updated exportPathMap docs (#14630)
Browse files Browse the repository at this point in the history
Closes #14596
  • Loading branch information
lfades authored Jun 27, 2020
1 parent b4b68c0 commit 0f60377
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 0f60377

Please sign in to comment.