From 63d1d9cbbf8c58ae65f590f974996e69cfb82452 Mon Sep 17 00:00:00 2001 From: ctwhome Date: Tue, 19 Mar 2024 11:51:01 +0100 Subject: [PATCH] Update Svelte adapter in svelte.config.js --- svelte.config.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/svelte.config.js b/svelte.config.js index f9d6089..65f5e8e 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,4 +1,4 @@ -import adapter from '@sveltejs/adapter-static'; +import adapter from '@sveltejs/adapter-node'; import { vitePreprocess } from '@sveltejs/vite-plugin-svelte' /** @type {import('@sveltejs/kit').Config} */ @@ -11,9 +11,7 @@ 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({ - fallback: '404.html' - }), + adapter: adapter(), paths: { base: process.argv.includes('dev') ? '' : process.env.BASE_PATH }