From 98a0c2a47bbe7ebf79ef974f6b9c1b3ea5c6d522 Mon Sep 17 00:00:00 2001 From: Alessandro Pignotti Date: Tue, 15 Oct 2024 17:23:42 +0200 Subject: [PATCH] Enable SSR --- src/routes/+page.js | 1 + src/routes/alpine/+page.js | 1 + svelte.config.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 src/routes/+page.js create mode 100644 src/routes/alpine/+page.js diff --git a/src/routes/+page.js b/src/routes/+page.js new file mode 100644 index 0000000..189f71e --- /dev/null +++ b/src/routes/+page.js @@ -0,0 +1 @@ +export const prerender = true; diff --git a/src/routes/alpine/+page.js b/src/routes/alpine/+page.js new file mode 100644 index 0000000..189f71e --- /dev/null +++ b/src/routes/alpine/+page.js @@ -0,0 +1 @@ +export const prerender = true; diff --git a/svelte.config.js b/svelte.config.js index 89df318..18cc5d8 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -4,7 +4,7 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; /** @type {import('@sveltejs/kit').Config} */ const config = { kit: { - adapter: adapter({fallback: 'index.html'}) + adapter: adapter() }, preprocess: vitePreprocess() };