From 39b82800d665719d606f1a4c021135ffb34e5dc6 Mon Sep 17 00:00:00 2001 From: Josh Creek <8179928+jcreek@users.noreply.github.com> Date: Wed, 3 Jan 2024 21:22:54 +0000 Subject: [PATCH] fix(*): Fix netlify routes not working --- svelte.config.js | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/svelte.config.js b/svelte.config.js index 95d429f..a6f4b9d 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -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 = { + // Consult https://kit.svelte.dev/docs/integrations#preprocessors + // for more information about preprocessors + preprocess: vitePreprocess(), + 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;