Skip to content

Commit a3bf52f

Browse files
authored
fix: initial render of 404 pages (#418)
1 parent b104d95 commit a3bf52f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/app/router.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ const getDefaultRoute = (): Route => ({
2525
component: null,
2626
// this will be set upon initial page load, which is before
2727
// the app is mounted, so it's guaranteed to be available in
28-
// components
29-
data: null as any
28+
// components. We just need enough data for 404 pages to render.
29+
data: { frontmatter: {} } as any
3030
})
3131

3232
interface PageModule {

0 commit comments

Comments
 (0)