Skip to content

Commit 79da92d

Browse files
author
FireCoding
authored
Fix: disable SSR by default in SvelteKit templates (fix for "feat: Sveltekit templates #200") (#241)
* Update +layout.ts (SvelteKit TS template) Turns off SSR by default, which prevents usage of `appWindow`. Discussion: #200 (comment) Issue & solution: https://github.com/sveltejs/kit/tree/master/packages/adapter-static#turn-off-ssr * Fix: disable SSR by default in SvelteKit template Turns off SSR by default, which prevents usage of `appWindow`. Discussion: #200 (comment) Issue & solution: https://github.com/sveltejs/kit/tree/master/packages/adapter-static#turn-off-ssr * changefile
1 parent 36c3096 commit 79da92d

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

.changes/svelte-kit-ssr.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"create-tauri-app": patch
3+
"create-tauri-app-js": patch
4+
---
5+
6+
Disable SSR by default in `svelte-kit` and `svelte-kit-ts` templates.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
export const ssr = false;
12
export const prerender = true;
23
export const csr = true;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
export const ssr = false;
12
export const prerender = true;
23
export const csr = true;

0 commit comments

Comments
 (0)