File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
packages/angular_devkit/build_angular/src/builders/dev-server Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,6 @@ interface OutputFileRecord {
3939 servable : boolean ;
4040}
4141
42- const SSG_MARKER_REGEXP = / n g - s e r v e r - c o n t e x t = [ " ' ] \w * \| ? s s g \| ? \w * [ " ' ] / ;
43-
4442function hashContent ( contents : BinaryLike ) : Buffer {
4543 // TODO: Consider xxhash
4644 return createHash ( 'sha256' ) . update ( contents ) . digest ( ) ;
@@ -490,16 +488,6 @@ export async function setupServer(
490488 return ;
491489 }
492490
493- const potentialPrerendered = outputFiles . get ( posix . join ( url , 'index.html' ) ) ?. contents ;
494- if ( potentialPrerendered ) {
495- const content = Buffer . from ( potentialPrerendered ) . toString ( 'utf-8' ) ;
496- if ( SSG_MARKER_REGEXP . test ( content ) ) {
497- transformIndexHtmlAndAddHeaders ( url , potentialPrerendered , res , next ) ;
498-
499- return ;
500- }
501- }
502-
503491 const rawHtml = outputFiles . get ( '/index.server.html' ) ?. contents ;
504492 if ( ! rawHtml ) {
505493 next ( ) ;
You can’t perform that action at this time.
0 commit comments