diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-09-28 00:43:43 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-10-05 18:16:26 -0400 |
| commit | 671b36c2c8d4026eb7a34f0ac7bd5720b34f1a0d (patch) | |
| tree | 4f7079c167d25f0b458d2005c59285fc0c59b9bb /hi-ui/svelte.config.js | |
| parent | d2af16cd8368dc52d5d8702eb0ef2cf74a33cdb9 (diff) | |
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
Diffstat (limited to 'hi-ui/svelte.config.js')
| -rw-r--r-- | hi-ui/svelte.config.js | 6 |
1 files changed, 4 insertions, 2 deletions
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() }; |
