From 5c912ce01302d063acf6531709f595c37a757153 Mon Sep 17 00:00:00 2001 From: AtHeartEngineer Date: Tue, 19 Sep 2023 14:11:09 -0400 Subject: [PATCH] fix(deployment) enable SPA --- src/routes/+layout.svelte | 2 +- svelte.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 54d9b03..3c1c4e8 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -13,7 +13,7 @@ import { Drawer } from '@skeletonlabs/skeleton'; import SelectServer from '$lib/components/SelectServer.svelte'; import SelectRoom from '$lib/components/SelectRoom.svelte'; - export const prerender = false; + export const ssr = false; // Hack to get BigInt <-> JSON compatibility (BigInt.prototype as any).toJSON = function () { return this.toString(); diff --git a/svelte.config.js b/svelte.config.js index b6b4860..514745a 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -13,6 +13,7 @@ const config = { // 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: 'index.html' }) } };