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
I think easiest would be worker. You can bundle the JSON file into the worker then assign it to the routes as needed.
Thanks! Going to give this a try...