fix: dont pre-render

This commit is contained in:
ThaUnknown 2023-11-27 01:59:55 +01:00
parent dc456d2749
commit ad33093ec0
2 changed files with 4 additions and 2 deletions

View file

@ -5,7 +5,7 @@ import '@fontsource/roboto'
import '@/css.css'
import '$lib/css.css'
export const prerender = true
export const prerender = false
export const csr = true
export const trailingSlash = 'always'

View file

@ -1,12 +1,14 @@
import adapter from '@sveltejs/adapter-static'
import { vitePreprocess } from '@sveltejs/kit/vite'
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
adapter: adapter({ fallback: 'index.html' })
}
}