Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
thezzisu committed Mar 7, 2023
1 parent 3297765 commit 7561d6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/content/3.config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,12 @@ When `cache` option is set, handlers matching pattern will be automatically wrap

### `prerender`

Default: `{ crawlLinks: false, routes: [] }`
Default: `{ crawlLinks: false, ignore: [], routes: [] }`

Prerendered options. Any route specified will be fetched during the build and copied to the `.output/public` directory as a static asset.

The `ignore` option accepts an array of string or regex to specify routes to ignore. Routes that starts with the string or matches the regex will be ignored.

If `crawlLinks` option is set to `true`, nitro starts with `/` by default (or all routes in `routes` array) and for HTML pages extracts `<a href="">` tags and prerender them as well.

<!-- Directories -->
Expand Down

0 comments on commit 7561d6c

Please sign in to comment.