Skip to content

Commit

Permalink
Merge branch 'sejohnson-improve-adapter-static-errors' of github.com:…
Browse files Browse the repository at this point in the history
…tcc-sejohnson/kit into sejohnson-improve-adapter-static-errors
  • Loading branch information
Rich-Harris committed Jul 16, 2022
2 parents ce782f8 + d2f1799 commit 019e097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/adapter-static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function (options) {
async adapt(builder) {
if (!options?.fallback && !builder.config.kit.prerender.default) {
throw Error(
"It looks like you're using adapter-static, but `config.kit.prerender.default` is `false` and `fallback` has not been provided as a configuration argument to adapter-static. Either set `config.kit.prerender.default` to true (to statically generate your entire site) or set `config.kit.adapter.fallback` to your desired fallback page (to operate in SPA mode). For more information, check out https://github.com/sveltejs/kit/tree/master/packages/adapter-static#spa-mode"
'adapter-static requires `config.kit.prerender.default` to be `true` unless you set the `fallback: true` option to create a single-page app. See https://github.com/sveltejs/kit/tree/master/packages/adapter-static#spa-mode for more information'
);
}

Expand Down

0 comments on commit 019e097

Please sign in to comment.