mirror of
https://github.com/vitejs/vite.git
synced 2024-11-21 14:48:41 +00:00
docs: note about a silly edge case in the ssr guide (#18628)
This commit is contained in:
parent
f39896e7ff
commit
584a573e1f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user