Skip to content

Commit

Permalink
docs: add prerender.ignore description (#1032)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanneskuettner authored Mar 8, 2023
1 parent a322405 commit 8049f5b
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.

Any route that starts with a prefix listed in `ignore` 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 8049f5b

Please sign in to comment.