fix: production 404 page

vercel moment
This commit is contained in:
Ax333l 2022-10-30 22:08:54 +01:00
parent fdf9ddbf65
commit 94f547c1b5

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'