Skip to content

Commit

Permalink
fix: initial render of 404 pages (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueLoving authored Jan 6, 2022
1 parent b104d95 commit a3bf52f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/app/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const getDefaultRoute = (): Route => ({
component: null,
// this will be set upon initial page load, which is before
// the app is mounted, so it's guaranteed to be available in
// components
data: null as any
// components. We just need enough data for 404 pages to render.
data: { frontmatter: {} } as any
})

interface PageModule {
Expand Down

0 comments on commit a3bf52f

Please sign in to comment.