Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Sep 7, 2021
1 parent 5158b94 commit 4180134
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions documentation/docs/14-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ const config = {
prerender: {
crawl: true,
enabled: true,
onError: 'fail',
pages: ['*']
entries: ['*'],
onError: 'fail'
},
router: true,
serviceWorker: {
Expand Down Expand Up @@ -148,6 +148,7 @@ See [Prerendering](#ssr-and-javascript-prerender). An object containing zero or

- `crawl` — determines whether SvelteKit should find pages to prerender by following links from the seed page(s)
- `enabled` — set to `false` to disable prerendering altogether
- `entries` — an array of pages to prerender, or start crawling from (if `crawl: true`). The `*` string includes all non-dynamic routes (i.e. pages with no `[parameters]` )
- `onError`

- `'fail'` — (default) fails the build when a routing error is encountered when following a link
Expand All @@ -172,8 +173,6 @@ See [Prerendering](#ssr-and-javascript-prerender). An object containing zero or
};
```

- `pages`an array of pages to prerender, or start crawling from (if `crawl: true`). The `*` string includes all non-dynamic routes (i.e. pages with no `[parameters]` )

### router

Enables or disables the client-side [router](#ssr-and-javascript-router) app-wide.
Expand Down

0 comments on commit 4180134

Please sign in to comment.