An attempt to set up a server-side (universal, isomorphic) visualized response application that is deployed through CircleCI using Heroku for the node / express application and Cloudfront as a CDN.
I am having problems with a concept of how this will work. The flow seems fairly straightforward, with the exception of a few parts. When we deploy our embedded assets to a CDN, such as CloudFront, how do we connect them to our index.html file, which lives on Heroku? (This index file is built and maintained from the Heroku node application as a base for server-side rendering). But I want it to refer to CDN assets, not Heroku assets. (CircleCi launches webpack and does Heroku after deploying it as well)
Has anyone come across this before?
source share