Skip to content

Commit 9b0d730

Browse files
committed
fix(@angular/build): prevent server manifest generation when no server features are enabled
This change ensures that the server manifest is not generated if none of the server-related features are enabled. Closes #29443
1 parent 8efd4ca commit 9b0d730

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/angular/build/src/builders/application/execute-post-bundle.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export async function executePostBundleSteps(
6666
const {
6767
baseHref = '/',
6868
serviceWorker,
69-
i18nOptions,
69+
ssrOptions,
7070
indexHtmlOptions,
7171
optimizationOptions,
7272
sourcemapOptions,
@@ -113,7 +113,7 @@ export async function executePostBundleSteps(
113113

114114
// Create server manifest
115115
const initialFilesPaths = new Set(initialFiles.keys());
116-
if (serverEntryPoint) {
116+
if (serverEntryPoint && (outputMode || prerenderOptions || appShellOptions || ssrOptions)) {
117117
const { manifestContent, serverAssetsChunks } = generateAngularServerAppManifest(
118118
additionalHtmlOutputFiles,
119119
outputFiles,

0 commit comments

Comments
 (0)