You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(@angular/build): introduce outputMode option to the application builder
The `outputMode` option defines the build output target, offering two modes:
- `'static'`: Generates a static site suitable for deployment on any static hosting service. This mode can produce a fully client-side rendered (CSR) or static site generated (SSG) site. When SSG is enabled, redirects are handled using the `<meta>` tag.
- `'server'`: Produces an application designed for deployment on a server that supports server-side rendering (SSR) or a hybrid approach.
Additionally, the `outputMode` option determines whether the new API is used. If enabled, it bundles the `server.ts` as a separate entry point, preventing it from directly referencing `main.server.ts` and excluding it from localization.
In the future, it is also being considered that this option will replace `appShell` and `prerendering` when server routing configuration is present.
Copy file name to clipboardExpand all lines: packages/angular/build/src/builders/application/schema.json
+5
Original file line number
Diff line number
Diff line change
@@ -528,6 +528,11 @@
528
528
"type": "boolean",
529
529
"description": "Generates an application shell during build time.",
530
530
"default": false
531
+
},
532
+
"outputMode": {
533
+
"type": "string",
534
+
"description": "Defines the build output target. 'static': Generates a static site for deployment on any static hosting service. 'server': Produces an application designed for deployment on a server that supports server-side rendering (SSR).",
0 commit comments