From 336d2a9b54958dbbc4a199d8c134c7dea31283ec Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sat, 20 Jan 2024 10:46:13 +0100 Subject: [PATCH] Fix: use adapter-static --- svelte.config.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/svelte.config.js b/svelte.config.js index cf464a5..388d237 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,4 +1,4 @@ -import adapter from '@sveltejs/adapter-auto'; +import adapter from '@sveltejs/adapter-static'; import { vitePreprocess } from '@sveltejs/kit/vite'; /** @type {import('@sveltejs/kit').Config} */ @@ -11,7 +11,10 @@ const config = { // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. // If your environment is not supported or you settled on a specific environment, switch out the adapter. // See https://kit.svelte.dev/docs/adapters for more information about adapters. - adapter: adapter() + adapter: adapter({ + fallback: 'index.html', + strict: false + }) } };