I’ve recently had to shut down some old platforms. This presented an interesting challenge, as I had some requirements:
- No ongoing server costs/maintenance
- Custom error messages depending on the domain, so the solution can be applied to multiple legacy platforms
- Work across wildcard subdomains, which are used to identify the tenant
I already manage DNS through Cloudflare, and after investigating their Workers a little bit, I found that they provide the perfect solution.