Skip to content

feat: migrate to angular v20 and update Angular server-side rendering setup - #15

Merged
iamgld merged 4 commits into
stagingfrom
development
Nov 5, 2025
Merged

feat: migrate to angular v20 and update Angular server-side rendering setup#15
iamgld merged 4 commits into
stagingfrom
development

Conversation

@iamgld

@iamgld iamgld commented Nov 5, 2025

Copy link
Copy Markdown
Owner
  • Created a new pnpm workspace configuration file to manage dependencies.
  • Updated server configuration to use withRoutes for server-side rendering.
  • Enhanced app configuration with new providers for error handling and change detection.
  • Introduced a new server routes file for handling all requests with server rendering.
  • Removed the old index file to streamline exports.
  • Refactored main server file to utilize Angular's new Node app engine for improved request handling.

… setup

- Created a new pnpm workspace configuration file to manage dependencies.
- Updated server configuration to use `withRoutes` for server-side rendering.
- Enhanced app configuration with new providers for error handling and change detection.
- Introduced a new server routes file for handling all requests with server rendering.
- Removed the old index file to streamline exports.
- Refactored main server file to utilize Angular's new Node app engine for improved request handling.
Copilot AI review requested due to automatic review settings November 5, 2025 23:26
@iamgld iamgld changed the title feat: migrate to angular v20 and update Angular server-side rendering… feat: migrate to angular v20 and update Angular server-side rendering setup Nov 5, 2025
@iamgld
iamgld changed the base branch from main to staging November 5, 2025 23:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades the Angular application from version 18 to version 20, modernizing the SSR setup and adopting Angular's zoneless change detection strategy.

  • Updated Angular and related packages from v18.x to v20.x
  • Migrated SSR implementation to use the new AngularNodeAppEngine API
  • Removed zone.js dependency in favor of zoneless change detection

Reviewed Changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
package.json Updated all Angular packages and dependencies to v20, removed zone.js, adjusted scripts to use shorthand flags
src/server.ts Refactored server setup to use new AngularNodeAppEngine API, replaced CommonEngine with simplified SSR handling
src/main.server.ts Updated bootstrap function to accept BootstrapContext and use renamed config export
src/app/app.config.ts Added zoneless change detection provider, event replay hydration, and removed animations provider
src/app/app.config.server.ts Migrated to use provideServerRendering from @angular/ssr with server routes configuration
src/app/app.routes.server.ts Added new server routes configuration file with catch-all route
src/app/index.ts Removed file that previously exported app components and configs
angular.json Updated builder references from @angular-devkit/build-angular to @angular/build, removed prerender option, added outputMode, removed zone.js polyfill
pnpm-workspace.yaml Added new workspace configuration with build dependencies
llms.txt Added new documentation file with Angular learning resources
.prettierrc Removed embeddedLanguageFormatting option

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread llms.txt Outdated
Comment thread angular.json Outdated
Comment thread src/server.ts Outdated
iamgld and others added 2 commits November 5, 2025 20:29
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Copilot AI commented Nov 5, 2025

Copy link
Copy Markdown

@iamgld I've opened a new pull request, #16, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI commented Nov 5, 2025

Copy link
Copy Markdown

@iamgld I've opened a new pull request, #17, to work on those changes. Once the pull request is ready, I'll request review from you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants