-
Notifications
You must be signed in to change notification settings - Fork 11.9k
feat(@angular/build): introduce ssr.experimentalPlatform
option
#28598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
experimentalNodeless
option for SSR buildsexperimentalNodeless
option for SSR builds
experimentalNodeless
option for SSR buildsssr.experimentalPlatform
option
98f3392
to
bf03e80
Compare
f746b82
to
4f8723a
Compare
Note: The test failure occurs due to the current test structure relying on #28571. Once that PR is merged, the test will pass successfully. |
const port = await findFreePort(); | ||
await execAndWaitForOutputToMatch( | ||
'npx', | ||
['-y', 'listhen', './dist/test-project/server/server.mjs', `--port=${port}`], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: Should listhen
be in our devDependencies
? That way our bazel test
doesn't need network access to download it dynamically and pin the dependency insulate us from breaking changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it’s used only in a single test I preferred to use npx. I can add a version specifier though.
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.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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.