File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
beta/src/content/reference/react-dom/server Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ const assetMap = {
167167
168168async function handler (request ) {
169169 const stream = await renderToReadableStream (< App assetMap= {assetMap} / > , {
170- bootstrapScripts: [assets [' /main.js' ]]
170+ bootstrapScripts: [assetMap [' /main.js' ]]
171171 });
172172 return new Response (stream, {
173173 headers: { ' content-type' : ' text/html' },
@@ -188,7 +188,7 @@ async function handler(request) {
188188 const stream = await renderToReadableStream (< App assetMap= {assetMap} / > , {
189189 // Careful: It's safe to stringify() this because this data isn't user-generated.
190190 bootstrapScriptContent: ` window.assetMap = ${ JSON .stringify (assetMap)} ;` ,
191- bootstrapScripts: [assets [' /main.js' ]],
191+ bootstrapScripts: [assetMap [' /main.js' ]],
192192 });
193193 return new Response (stream, {
194194 headers: { ' content-type' : ' text/html' },
You can’t perform that action at this time.
0 commit comments