From efed9aab298f9168285a6fdef4c21be7575fd9a3 Mon Sep 17 00:00:00 2001 From: uhKayla Date: Tue, 25 Jun 2024 12:33:26 -0400 Subject: [PATCH] Fix SPA options and bump version --- src-tauri/tauri.conf.json | 2 +- src/routes/worlds/[slug]/+page.ts | 3 +++ svelte.config.js | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 2e8a3fd..a3f6a6e 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -7,7 +7,7 @@ }, "package": { "productName": "SpectreVRC", - "version": "0.1.5" + "version": "0.1.6" }, "tauri": { "allowlist": { diff --git a/src/routes/worlds/[slug]/+page.ts b/src/routes/worlds/[slug]/+page.ts index 94a9469..aeed7e0 100644 --- a/src/routes/worlds/[slug]/+page.ts +++ b/src/routes/worlds/[slug]/+page.ts @@ -1,4 +1,7 @@ import type { PageLoad } from './$types'; + +export const prerender = false; + export const load: PageLoad = ({ params }) => { return { post: { diff --git a/svelte.config.js b/svelte.config.js index 8d0505c..95da6d3 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -14,7 +14,9 @@ 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: '404.html' + }) } };