Skip to content

Commit

Permalink
feat(layout): remove prerender from layout.svelte and create +layout.…
Browse files Browse the repository at this point in the history
…server.ts

The prerender flag was removed from layout.svelte and moved to a new
file layout.server.ts. This change is part of a refactor to improve
the structure of the codebase.
  • Loading branch information
ryoppippi committed Jun 27, 2024
1 parent 404a778 commit b9ee5b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/routes/+layout.server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const prerender = true;
2 changes: 0 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script lang='ts'>
export const prerender = true;
import 'uno.css';
import '@unocss/reset/normalize.css';
Expand Down

0 comments on commit b9ee5b0

Please sign in to comment.