aboutsummaryrefslogtreecommitdiff
path: root/ui/svelte.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/svelte.config.js')
-rw-r--r--ui/svelte.config.js21
1 files changed, 19 insertions, 2 deletions
diff --git a/ui/svelte.config.js b/ui/svelte.config.js
index 87f198f..af0aad6 100644
--- a/ui/svelte.config.js
+++ b/ui/svelte.config.js
@@ -1,4 +1,6 @@
-import adapter from '@sveltejs/adapter-auto';
+// svelte.config.js
+// import adapter from '@sveltejs/adapter-auto';
+import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/kit/vite';
/** @type {import('@sveltejs/kit').Config} */
@@ -8,8 +10,23 @@ const config = {
preprocess: vitePreprocess(),
kit: {
- adapter: adapter()
+ adapter: adapter({
+ fallback: 'index.html',
+ trailingSlash: 'always'
+ }),
+
+ prerender: { entries: [] }
}
};
export default config;
+
+// import adapter from '@sveltejs/adapter-static';
+// export default {
+// kit: {
+// adapter: adapter({
+// fallback: '200.html'
+// }),
+// prerender: { entries: [] }
+// }
+// };