fix(*): Fix netlify routes not working

This commit is contained in:
Josh Creek
2024-01-03 21:22:54 +00:00
parent 55beec9304
commit 39b82800d6
+20 -3
View File
@@ -1,9 +1,26 @@
import netlify from '@sveltejs/adapter-netlify'; import adapter from '@sveltejs/adapter-netlify';
import { vitePreprocess } from '@sveltejs/kit/vite';
/** @type {import('@sveltejs/kit').Config} */
const config = { const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
kit: { kit: {
adapter: netlify() // default options are shown
}, adapter: adapter({
// if true, will create a Netlify Edge Function rather
// than using standard Node-based functions
edge: false,
// if true, will split your app into multiple functions
// instead of creating a single one for the entire app.
// if `edge` is true, this option cannot be used
split: false
})
}
}; };
export default config; export default config;