Skip to content

Commit

Permalink
Run svelte in SPA mode
Browse files Browse the repository at this point in the history
Due to the dynamic routing, the pages cannot be prerendered
  • Loading branch information
Correct-Syntax committed Feb 29, 2024
1 parent 01633c5 commit ea37f38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routes/+layout.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const prerender = true;
export const prerender = false;
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const config = {
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: undefined,
fallback: 'index.html',
precompress: false,
strict: true
}),
Expand Down

0 comments on commit ea37f38

Please sign in to comment.