Merge pull request #18 from Axelen123/404-fix

fix: production 404 page
This commit is contained in:
Ax333l 2022-10-31 12:31:05 +01:00 committed by GitHub
commit e43a0eb819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,8 +8,11 @@ const config = {
preprocess: preprocess(),
kit: {
// adapter-static has vercel detection, but that does not let you set a custom 404 page easily.
// Instead, we have to disable it and set trailing slash to always.
adapter: adapter({
pages: 'public',
pages: "public",
fallback: "404.html"
}),
trailingSlash: 'always'