(no title)
_andychung | 4 years ago
We used Vercel's new Edge Functions to make the routing work seamlessly in our web app, while under the hood it's actually using Cloudflare Workers to do middleware processing and routing at the edge layer. Because all this routing happens at the edge layer before requests even make it to our web app, we get features like bundle splitting, authentication and caching at the per domain level, and all for free. The end result is that we can build a web app without worrying about all the hairy details: we can re-use components from our main site in custom domains, static resources correctly load from custom domains rather than our main site, and all the routing logic is cached at the edge layer for fast handling.
Let us know if you try out custom domains, and happy to answer any questions about the feature!
No comments yet.