Faster angular universal with CDN



Faster angular universal with CDN

Faster angular universal with CDN

in this Faster angular universal with CDN episode, I have discussed an usecase which looks pretty simple at first. Serving your static file from CDN is pretty simple where You can simply use angula cli’s deploy-url flag to change your script and css path during build. But what about if you have multiple environments like DVL, QA, STAGING, PROD? .
We just want to build once and send package to your enterprise private npm and just deploy to every environment with that package making our CDN url configurable through env variable not through a build.

I have demonstrated how you can solve the issue with application reference by checking if the application is stable and then inject the files by getting the url config from environment variable using rendererfactory.

Project URL: https://github.com/kalyan11021980/angular-universal-cdnconfig

Comments are closed.