Skip to content

Commit

Permalink
update adapter-static readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Dec 22, 2021
1 parent a738933 commit aabcfbc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/adapter-static/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export default {
// default options are shown
pages: 'build',
assets: 'build',
fallback: null
fallback: null,
precompress: false
})
}
};
Expand All @@ -38,6 +39,10 @@ The directory to write static assets (the contents of `static`, plus client-side

Specify a fallback page for SPA mode, e.g. `index.html` or `200.html` or `404.html`.

### precompress

If `true`, precompresses files with brotli and gzip. This will generate `.br` and `.gz` files.

## SPA mode

You can use `adapter-static` to create a single-page app or SPA by specifying a **fallback page**.
Expand Down

0 comments on commit aabcfbc

Please sign in to comment.