Yesterday's Top Poster

Angular v22 is now supported

  • Thread starter Thread starter Netlify
  • Start date Start date
Angular v22 was released today and it is supported on Netlify on day one. To upgrade, follow the Angular upgrade steps and update @netlify/angular-runtime to v4.0.0 or later. Notable changes
  • Minimum Node.js version: Angular v22 requires Node.js 22.12.0 or later. Make sure your Netlify site is configured to use a supported Node.js version .
  • allowedHosts config: Angular v21.x (specifically, @angular/ssr) introduced an allowedHosts option in the AngularAppEngine configuration, giving you explicit control over which hosts are permitted to connect. Angular 22 started returning a HTTP 400 for requests with other host headers. @netlify/angular-runtime handles adding the most common URLs for a Netlify deploy to the allowedHosts config automatically allowing developers to use Netlify's branch and deploy previews without the HTTP 400 error.
  • Forwarded headers support withtrustProxyHeaders: A new trustProxyHeaders option lets Angular applications behind a reverse proxy correctly read forwarded headers such as X-Forwarded-For and X-Forwarded-Proto. @netlify/angular-runtime handles adding the required headers automatically.
Learn more:
  • Angular v22 Release
  • Angular on Netlify
  • Angular Runtime

Continue reading...
 
Back
Top