Skip to content

Commit

Permalink
Fix: disable SSR by default in SvelteKit templates (fix for "feat: Sv…
Browse files Browse the repository at this point in the history
…eltekit 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
  • Loading branch information
FireCoding committed Nov 24, 2022
1 parent 36c3096 commit 79da92d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/svelte-kit-ssr.md
@@ -0,0 +1,6 @@
---
"create-tauri-app": patch
"create-tauri-app-js": patch
---

Disable SSR by default in `svelte-kit` and `svelte-kit-ts` templates.
@@ -1,2 +1,3 @@
export const ssr = false;
export const prerender = true;
export const csr = true;
@@ -1,2 +1,3 @@
export const ssr = false;
export const prerender = true;
export const csr = true;

0 comments on commit 79da92d

Please sign in to comment.