Domain Migrations for Mini Apps #381
Replies: 3 comments 1 reply
-
I like the idea of solving this problem. But it seems like this is a partial solution that might just be adding complexity. Isn't a long term solution to give mini apps their own FID and then tie notifications, etc., to that stable value? |
Beta Was this translation helpful? Give feedback.
-
This would really help me out! Thank you @CassOnMars. I have been wanting to change my mini app's domain for a month and haven't been able to. |
Beta Was this translation helpful? Give feedback.
-
@CassOnMars In my case, my webhook URL is also a sub-domain, e.g. If so, I'm assuming the new Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The current version of the manifest specification for Mini Apps is a strict 1:1 mapping to domains, which can be challenging for developers who need to migrate, as:
There are a few different changes that would be helpful for these scenarios, but the first of them, which can be progressively improved, is a simple addition:
Change: Add a new field to the frame body,
canonicalDomain
Developers
canonicalDomain
will decide which domain is the primary domain to be served to users for mini apps and notifications. If omitted, the domain from theaccountAssociation
remains the primary domain. IfcanonicalDomain
is used, both the domain in theaccountAssociation
and thecanonicalDomain
must have a manifest, signed by the same FID, to successfully apply the mapping.Farcaster Client
The client will use the canonical domain value to replace the domain of the given urls, if necessary. Any notifications originally linking to the prior domain should now link to the new domain for the mini app.
Adoption
This is a non-breaking change. If a Farcaster client implementation does not support it, the previous domains should still work for as long as the domain continues to serve the manifest.
Beta Was this translation helpful? Give feedback.
All reactions