Skip to content

Commit 584a573

Browse files
authored
docs: note about a silly edge case in the ssr guide (#18628)
1 parent f39896e commit 584a573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/guide/ssr.md

+1-1
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. Inject the app-rendered HTML into the template.
152-
const html = template.replace(`<!--ssr-outlet-->`, appHtml)
152+
const html = template.replace(`<!--ssr-outlet-->`, () => appHtml)
153153

154154
// 6. Send the rendered HTML back.
155155
res.status(200).set({ 'Content-Type': 'text/html' }).end(html)

0 commit comments

Comments
 (0)