Open rbennettcw opened 1 year ago
I think we shouldn't spend time on TDD for integration tests for this one since CNAMEs could take up to a few hours to propagate. The integration tests wont be able to run in real time so should probably be skipped.
I am in the process of writing e2e tests for custom domains, so this can also be skipped (I can modify the existing tests to work with this new method).
Overview
Motivation
Currently all our assets are cached on our CDN (cloudflare). Because we only run our custom domains on heroku, when we give this custom domain to the clients, the resources that it requests are uncached. This has two problems:
Initial Setup
Migration
Routes to add (paths TBD)
Env vars to add (specific naming TBD)
Testing
Draft Sequence Diagram