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
This commit introduces a new option called `experimentalPlatform` to the Angular SSR configuration.
The `experimentalPlatform` option allows developers to specify the target platform for the server bundle, enabling the generation of platform-neutral bundles suitable for deployment in environments like edge workers and other serverless platforms that do not rely on Node.js APIs.
This change enhances the portability of Angular SSR applications and expands their deployment possibilities.
**Note:** that this feature does not include polyfills for Node.js modules and is experimental, subject to future changes.
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
@@ -518,6 +518,11 @@
518
518
"entry": {
519
519
"type": "string",
520
520
"description": "The server entry-point that when executed will spawn the web server."
521
+
},
522
+
"experimentalPlatform": {
523
+
"description": "Specifies the platform for which the server bundle is generated. This affects the APIs and modules available in the server-side code. \n\n- `node`: (Default) Generates a bundle optimized for Node.js environments. \n- `neutral`: Generates a platform-neutral bundle suitable for environments like edge workers, and other serverless platforms. This option avoids using Node.js-specific APIs, making the bundle more portable. \n\nPlease note that this feature does not provide polyfills for Node.js modules. Additionally, it is experimental, and the schematics may undergo changes in future versions.",
0 commit comments