From c9f8c23d43b00d01976f150b32d9efefda6ee953 Mon Sep 17 00:00:00 2001 From: Naoki Endoh Date: Sat, 19 Jun 2021 13:25:51 +0900 Subject: [PATCH] fix: await router push in ssr server https://github.com/vuejs/docs/commit/82e6ffc4719ece2963c9e40067fd8315411803d1 --- src/guide/ssr/routing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/ssr/routing.md b/src/guide/ssr/routing.md index 76e9108e..8f7f44a8 100644 --- a/src/guide/ssr/routing.md +++ b/src/guide/ssr/routing.md @@ -101,7 +101,7 @@ const createApp = require(appPath).default server.get('*', async (req, res) => { const { app, router } = createApp() - router.push(req.url) + await router.push(req.url) await router.isReady() const appContent = await renderToString(app)