Simplest way to serve same .well-known/apple-app-site-association file for multiple subdomains?

I'd like to serve the same small JSON file in response to requests for the .well-known/apple-app-site-association path across multiple subdomains. Can I accomplish this with page rules, transform rules, page functions, or workers? Some of these approaches seem overqualified, so I'm curious to hear from someone who has set this up.
2 Replies
Cyb3r-Jak3
Cyb3r-Jak37mo ago
I think easiest would be worker. You can bundle the JSON file into the worker then assign it to the routes as needed.
Joey A
Joey AOP7mo ago
Thanks! Going to give this a try...

Did you find this page helpful?