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;