Skip to content

Commit b37c141

Browse files
committed
Enable prerendering to fix 404 on root page
1 parent 310537d commit b37c141

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/routes/+layout.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const prerender = true;

svelte.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ const config = {
1919
},
2020
prerender: {
2121
handleHttpError: 'warn',
22-
handleMissingId: 'warn'
22+
handleMissingId: 'warn',
23+
handleUnseenRoutes: 'warn'
2324
}
2425
}
2526
};

0 commit comments

Comments
 (0)