Skip to content

Commit c011443

Browse files
committed
docs: note about a silly edge case in the ssr guide
resolve #1721 vitejs/vite@584a573 の反映です。
1 parent 40b0f2a commit c011443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guide/ssr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ app.use('*', async (req, res, next) => {
149149
const appHtml = await render(url)
150150

151151
// 5. アプリケーションのレンダリングされた HTML をテンプレートに挿入します。
152-
const html = template.replace(`<!--ssr-outlet-->`, appHtml)
152+
const html = template.replace(`<!--ssr-outlet-->`, () => appHtml)
153153

154154
// 6. レンダリングされた HTML をクライアントに送ります。
155155
res.status(200).set({ 'Content-Type': 'text/html' }).end(html)

0 commit comments

Comments
 (0)