Skip to content

Commit ec2166d

Browse files
authored
Merge pull request #411 from naokie/guide/ssr/routing
fix: await router push in ssr server
2 parents a662c43 + c9f8c23 commit ec2166d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/ssr/routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const createApp = require(appPath).default
101101
server.get('*', async (req, res) => {
102102
const { app, router } = createApp()
103103

104-
router.push(req.url)
104+
await router.push(req.url)
105105
await router.isReady()
106106

107107
const appContent = await renderToString(app)

0 commit comments

Comments
 (0)