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 {
39
39
servable : boolean ;
40
40
}
41
41
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
-
44
42
function hashContent ( contents : BinaryLike ) : Buffer {
45
43
// TODO: Consider xxhash
46
44
return createHash ( 'sha256' ) . update ( contents ) . digest ( ) ;
@@ -490,16 +488,6 @@ export async function setupServer(
490
488
return ;
491
489
}
492
490
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
-
503
491
const rawHtml = outputFiles . get ( '/index.server.html' ) ?. contents ;
504
492
if ( ! rawHtml ) {
505
493
next ( ) ;
You can’t perform that action at this time.
0 commit comments