Serve apple-app-site-association on the live site for iOS universal links - #134
Merged
Conversation
…inks reflectionsprojections.org is deployed from this repo's apps/site (Cloudflare Pages project rp-web-site), not from rp-monorepo, so the AASA file added there (rp-monorepo#32) never reached production and the path still returns the SPA HTML. iOS therefore never associates the domain, and magic-link emails open in the browser instead of rp-mobile. Adds the AASA next to the existing assetlinks.json, scoped to the /auth/mobile/login callback path, plus a _headers rule so Cloudflare Pages serves the extensionless file as application/json. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Deploying rp-web-site with
|
| Latest commit: |
e6a1335
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://17430dfb.rp-web-site.pages.dev |
| Branch Preview URL: | https://akul-apple-app-site-associat.rp-web-site.pages.dev |
Deploying rp-web-dash with
|
| Latest commit: |
e6a1335
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://61f1ef11.rp-web-dash.pages.dev |
| Branch Preview URL: | https://akul-apple-app-site-associat.rp-web-dash.pages.dev |
Deploying rp-web-info with
|
| Latest commit: |
e6a1335
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b67da399.rp-web-info.pages.dev |
| Branch Preview URL: | https://akul-apple-app-site-associat.rp-web-info.pages.dev |
Deploying rp-web-hype with
|
| Latest commit: |
e6a1335
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c104784c.rp-web-hype.pages.dev |
| Branch Preview URL: | https://akul-apple-app-site-associat.rp-web-hype.pages.dev |
Deploying rp-web-admin with
|
| Latest commit: |
e6a1335
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8a836549.rp-web-admin.pages.dev |
| Branch Preview URL: | https://akul-apple-app-site-associat.rp-web-admin.pages.dev |
Deploying rp-web-sponsor with
|
| Latest commit: |
e6a1335
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1f095360.rp-web-sponsor.pages.dev |
| Branch Preview URL: | https://akul-apple-app-site-associat.rp-web-sponsor.pages.dev |
advitagelli
approved these changes
Aug 6, 2026
Contributor
|
looks shit, ship it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Magic-link emails for mobile point at
https://reflectionsprojections.org/auth/mobile/login?token=…. For iOS to open that link in rp-mobile instead of the browser, the domain must serve/.well-known/apple-app-site-associationas JSON. It currently returns the SPA HTML withtext/html.The AASA was added to rp-monorepo (ReflectionsProjections/rp-monorepo#32) — but reflectionsprojections.org is deployed from this repo (
apps/site→ Cloudflare Pages projectrp-web-site), not from therp-monorepoPages project, so that fix never reached production. (Verified:rp-monorepo.pages.dev/.well-known/apple-app-site-associationserves correct JSON; the live domain serves this repo's 2025 site.)Changes
apps/site/public/.well-known/apple-app-site-association— same file as rp-monorepo#32: app ID8VNQTQM2L6.com.reflectionsprojections(Apple team + bundle ID from rp-mobile), applinks scoped to/auth/mobile/loginonly, pluswebcredentials.apps/site/public/_headers— Cloudflare Pages headers rule forcingContent-Type: application/jsonon the extensionless file (the existingassetlinks.jsongets JSON via its extension; extensionless files default to octet-stream).Testing
yarn buildinapps/site:dist/.well-known/apple-app-site-associationanddist/_headersare present.curl -i https://reflectionsprojections.org/.well-known/apple-app-site-associationshould return the JSON withcontent-type: application/json.https://app-site-association.cdn-apple.com/a/v1/reflectionsprojections.org(can take up to ~24h to refresh).Notes
Serving the AASA is necessary but not sufficient — rp-mobile still needs the
associatedDomains(applinks:reflectionsprojections.org) entitlement and a handler for the/auth/mobile/loginroute that posts the token toPOST /auth/magic-links/verify. That will be done separately in rp-mobile.🤖 Generated with Claude Code