From 671b36c2c8d4026eb7a34f0ac7bd5720b34f1a0d Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Sat, 28 Sep 2024 00:43:43 -0400 Subject: Configure the SvelteKit build process to build a static site. This is the [recommended] adapter for a single-page app. That's approximately how I expect to deploy the UI. [recommended]: https://kit.svelte.dev/docs/single-page-apps --- hi-ui/svelte.config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'hi-ui/svelte.config.js') diff --git a/hi-ui/svelte.config.js b/hi-ui/svelte.config.js index 7f55c59..07e332f 100644 --- a/hi-ui/svelte.config.js +++ b/hi-ui/svelte.config.js @@ -1,4 +1,4 @@ -import adapter from '@sveltejs/adapter-auto'; +import adapter from '@sveltejs/adapter-static'; import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; /** @type {import('@sveltejs/kit').Config} */ @@ -7,7 +7,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: 'index.html', + }), }, preprocess: vitePreprocess() }; -- cgit v1.2.3