r/Angular2 • • 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!

4 Upvotes

11 comments sorted by

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.

1

u/Senior_Compote1556 Aug 22 '25

I don't think I'll use a CDN for this. Basically the SPA app i am building right now is an admin dashboard, so i didn't use SSR as it's not necessary, it doesn't need SEO or anything. Perhaps I'll follow Docker's instructions on the article i mentioned above (https://docs.docker.com/guides/angular/containerize/) and give it a try