Skip to content

Commit

Permalink
docs: note about a silly edge case in the ssr guide (#18628)
Browse files Browse the repository at this point in the history
  • Loading branch information
andriibeee authored Nov 11, 2024
1 parent f39896e commit 584a573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/ssr.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ app.use('*', async (req, res, next) => {
const appHtml = await render(url)

// 5. Inject the app-rendered HTML into the template.
const html = template.replace(`<!--ssr-outlet-->`, appHtml)
const html = template.replace(`<!--ssr-outlet-->`, () => appHtml)

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

0 comments on commit 584a573

Please sign in to comment.