File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export const renderRouterToString = async ({
1717 const injectedHtml = await Promise . all ( router . serverSsr ! . injectedHtml ) . then (
1818 ( htmls ) => htmls . join ( '' ) ,
1919 )
20- html = html . replace ( `</body>` , `${ injectedHtml } </body>` )
20+ html = html . replace ( `</body>` , ( ) => `${ injectedHtml } </body>` )
2121 return new Response ( `<!DOCTYPE html>${ html } ` , {
2222 status : router . state . statusCode ,
2323 headers : responseHeaders ,
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export const renderRouterToString = async ({
2929 const injectedHtml = await Promise . all ( router . serverSsr ! . injectedHtml ) . then (
3030 ( htmls ) => htmls . join ( '' ) ,
3131 )
32- html = html . replace ( `</body>` , `${ injectedHtml } </body>` )
32+ html = html . replace ( `</body>` , ( ) => `${ injectedHtml } </body>` )
3333 return new Response ( `<!DOCTYPE html>${ html } ` , {
3434 status : router . state . statusCode ,
3535 headers : responseHeaders ,
You can’t perform that action at this time.
0 commit comments