Skip to content

Commit 4816780

Browse files
committed
fixup! fix(@angular/ssr): avoid caching non-SSG page lookups
1 parent 8cb57fb commit 4816780

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/angular/ssr/node/src/common-engine/common-engine.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,10 @@ export class CommonEngine {
175175
const isSSG = SSG_MARKER_REGEXP.test(content);
176176
if (isSSG) {
177177
this.pageIsSSG.set(pagePath, true);
178+
return content;
178179
}
179180

180-
return isSSG ? content : undefined;
181+
return undefined;
181182
}
182183

183184
private async renderApplication(opts: CommonEngineRenderOptions): Promise<string> {

0 commit comments

Comments
 (0)