Skip to content

Commit

Permalink
Fix svelte.config.js as of sveltejs/kit#6197
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Fazzi committed Sep 19, 2022
1 parent 8f4ca03 commit 59cc31d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/routes/+layout.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { getIdentity } from "$lib/kratos";
import identity from "$lib/stores/kratos/identity";


// -----------------------------------------------------------------------------
export const csr = false;
export const prerender = true;

export async function load() {
await getIdentity()
.then((_identity) => {
Expand Down
4 changes: 0 additions & 4 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ const config = {
preprocess: preprocess(),

kit: {
adapter: adapter(),
prerender: {
default: false,
},
},
};

Expand Down

0 comments on commit 59cc31d

Please sign in to comment.