diff --git a/src/routes/+layout.js b/src/routes/+layout.js index 09a24d3..1acb5fb 100644 --- a/src/routes/+layout.js +++ b/src/routes/+layout.js @@ -1,2 +1,3 @@ export const ssr = false; +export const csr = true; export const prerender = true; \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index eefe408..6926b6b 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,7 +1,8 @@ import { purgeCss } from 'vite-plugin-tailwind-purgecss'; import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; +import { SvelteKitPWA } from '@vite-pwa/sveltekit'; export default defineConfig({ - plugins: [sveltekit(), purgeCss()] + plugins: [sveltekit(), purgeCss(), SvelteKitPWA()] });