Skip to content

Commit

Permalink
Added layout prerendering
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyVoisin committed Oct 25, 2023
1 parent 380af79 commit 515d770
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/routes/+layout.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { LayoutLoad } from './$types';

export const prerender = true;

export const load = (async () => {
return {};
}) satisfies LayoutLoad;
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const config = {
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: 'index.html',
fallback: undefined,
precompress: false,
strict: true
})
Expand Down

0 comments on commit 515d770

Please sign in to comment.