revanced-website/svelte.config.js
Ax333l 94f547c1b5 fix: production 404 page
vercel moment
2022-10-31 12:29:04 +01:00

23 lines
591 B
JavaScript

import adapter from '@sveltejs/adapter-static';
import preprocess from 'svelte-preprocess';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
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",
fallback: "404.html"
}),
trailingSlash: 'always'
}
};
export default config;