Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 1.08 KB

File metadata and controls

23 lines (19 loc) · 1.08 KB

Memory Fix for Render Deployment

Problem

  • App deployment on Render failing with "Ran out of memory (used over 512MB) while running your code."
  • Issue caused by Angular SSR build consuming too much memory.

Solution Implemented

  • Disabled Server-Side Rendering (SSR) in Angular to reduce build memory usage
  • Removed "server", "ssr", and "outputMode": "server" options from angular.json build configuration
  • Updated package.json scripts: changed start to use "serve" for static files
  • Removed SSR dependencies: @angular/platform-server, @angular/ssr, express, @types/express
  • Added "serve" package for static file serving
  • Created render.yaml with static site configuration and reduced memory limit (512MB)

Files Modified

  • yakalma-client/angular.json: Removed SSR options
  • yakalma-client/package.json: Updated scripts and dependencies
  • yakalma-client/render.yaml: Created deployment configuration

Next Steps

  • Redeploy the app on Render
  • Monitor memory usage during build
  • If still failing, consider upgrading Render plan or further optimizing bundle size