From 50e56159b7a6ef01e0ce24427682568401543bc6 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sun, 15 Mar 2026 20:07:37 +0000 Subject: [PATCH] Add required options for static build --- src/routes/+layout.ts | 3 +++ svelte.config.js | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/routes/+layout.ts diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts new file mode 100644 index 0000000..cf088e3 --- /dev/null +++ b/src/routes/+layout.ts @@ -0,0 +1,3 @@ +export const prerender = true; +export const trailingSlash = 'always'; +export const csr = true; \ No newline at end of file diff --git a/svelte.config.js b/svelte.config.js index 9338c8c..b9cddac 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,6 +1,16 @@ import adapter from '@sveltejs/adapter-static'; /** @type {import('@sveltejs/kit').Config} */ -const config = { kit: { adapter: adapter() } }; +const config = { + kit: { + adapter: adapter({ + pages: 'build', + assets: 'build', + fallback: 'index.html', + precompress: 'true', + strict: 'true' + }) + } +}; export default config;