File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -111,15 +111,14 @@ export async function processJSXEntries(
111111 // Step 3: Create final HTML (could be parallelized in workers)
112112 const results = await Promise . all (
113113 entries . map ( async ( { data : { base, path, heading } } ) => {
114- const fileName = `${ base } .js` ;
115114 const title = `${ heading . data . name } | ${ titleSuffix } ` ;
116115
117116 // Replace template placeholders with actual content
118117 const renderedHtml = template
119118 . replace ( '{{title}}' , title )
120- . replace ( '{{dehydrated}}' , serverBundle . pages . get ( fileName ) ?? '' )
119+ . replace ( '{{dehydrated}}' , serverBundle . pages . get ( ` ${ path } .js` ) ?? '' )
121120 . replace ( '{{importMap}}' , clientBundle . importMap ?? '' )
122- . replace ( '{{entrypoint}}' , `./${ fileName } ?${ randomUUID ( ) } ` )
121+ . replace ( '{{entrypoint}}' , `./${ base } .js ?${ randomUUID ( ) } ` )
123122 . replace ( '{{speculationRules}}' , SPECULATION_RULES )
124123 . replace ( '{{ogTitle}}' , title ) ;
125124
You can’t perform that action at this time.
0 commit comments