Trying to set up a server-side (universal, isomorphic) rendered react app that is deployed via CircleCI using Heroku for the node/express app, and Cloudfront as the CDN.
I'm having some trouble conceptualizing how this will work. The flow seems pretty straight forward except for a few parts. Once we deploy our built assets to a CDN like CloudFront, how do we wire them up to our index.html file that lives on Heroku? (this index file is built and is served from the Heroku node app as a base for server side rendering). But I want it to contain links to the CDN assets, not the Heroku built assets. (CircleCi runs webpack and so does Heroku once it's deployed)
Has anyone ran into this before?