Angular 17 SSR

hampton1122HOBBY

a year ago

Currently I am deploying an angular 17 app without SSR but need to move SSR. I am currently using a caddyfile to deploy my angular app, how do I deploy with SSR? Has anyone done this before? Is there a template?

2 Replies

a year ago

I can see what I can whip up, but in the mean time, it would just be a case of foregoing the nixpacks.toml and Caddyfile, building your angular site with the correct configurations to build the SSR server, then your start script would need to run the built server, the server would then need to listen on the host 0.0.0.0 and the environment variable PORT, that's how it would be done at a high level, so I'll see what I can figure out and get back to you, but definitely give it a try yourself too!!


a year ago

answered via this GitHub issue: https://github.com/railwayapp-templates/angular-starter/issues/2#issuecomment-1883414479

if you need any more help, please open a #help thread on our discord server!