Enable SSR

This commit is contained in:
Alessandro Pignotti 2024-10-15 17:23:42 +02:00
parent d4db6f8e16
commit 98a0c2a47b
3 changed files with 3 additions and 1 deletions

1
src/routes/+page.js Normal file
View file

@ -0,0 +1 @@
export const prerender = true;

View file

@ -0,0 +1 @@
export const prerender = true;

View file

@ -4,7 +4,7 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
const config = { const config = {
kit: { kit: {
adapter: adapter({fallback: 'index.html'}) adapter: adapter()
}, },
preprocess: vitePreprocess() preprocess: vitePreprocess()
}; };