Skip to content

Commit

Permalink
docs: Ensuring file labels are consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Mar 22, 2022
1 parent 91d7501 commit 4412b7d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -266,8 +266,9 @@ preact build --prerenderUrls src/prerender-urls.json
If a static JSON file is too restrictive, you may want to provide a javascript file that exports your routes instead.
Routes can be exported as a JSON string or an object and can optionally be returned from a function.

> `prerender-urls.js`
```js
// prerender-urls.js
module.exports = [
{
url: '/',
Expand All @@ -279,8 +280,9 @@ module.exports = [
];
```

> `prerender-urls.js`
```js
// prerender-urls.js
export default () => {
return [
{
Expand Down

0 comments on commit 4412b7d

Please sign in to comment.