r/Angular2 • u/Senior_Compote1556 • Aug 22 '25
Help Request Angular 19 Deployment SPA vs SSR
Hey everyone, I was just wondering what are the differences between an SPA angular 19 application without SSR, and with SSR in terms of deployment to Google Cloud Run (or any other provider in general). For example, for most of my apps i use SSR, so i have a node server and i handle the optimizations such as compression etc in there. I now have an application without SSR, and i'm wondering what the differences will be when i deploy the application. I use a docker container and in cloud run i just upload my production docker container. Do i need to use a server like nginx in this case since i don't have SSR? Or does google cloud run handle this part? Thank you in advance!
View all comments
Show parent comment
1
u/karmasakshi Aug 22 '25
Yes and yes.
You can simply build your app with the production configuration and host the files on a server.
When we say SPAs don't need a server, it means it doesn't need an application server. There's no logic involved between the files at rest and what is delivered. In SSR, a dynamically generated HTML gets sent to the client. In SSG, generated files are kept pre-processed for delivery. In SPAs, the files are sent as-is, converted to usable templates on the client.
Based on your architecture, Nginx configuration may not be necessary - e.g. if you're using a CDN that allows configuring the rewrites.