how do we host .well-known/ as Appwrite required custom-domain to be verfied to allow redirect when click on password reset link or when user click on verify email...
But, if we link the DNS record of domain to the appwrite how could we host the .well-known/ to appwrite.example.com ? As, it's currenlty under appwrite...
Summary
Solution: The well-known folder should be hosted on your client-side app, not the server-side. The custom domain is for the server-side. It's not necessary for the well-known URL to be registered as a custom domain. To redirect when clicking on password reset links or verifying emails, you need to pass the URL while creating the email verification. The URL must be registered as a custom domain. It is recommended that the well-known and Appwrite custom domain not be the same. If you're uncertain about how to host the .well-known folder, someone previously asked the same question on an Appwrite discussion forum. You can find the
earlier as well someone ask it, not sure how they did...
Drake
Nov 21, 2023, 20:45
uhh you shouldn't have the well known and appwrite custom domain be the same
Drake
Nov 21, 2023, 20:45
the well known should be for your client-side app. the custom domain is for the server side
Vedsaga
Rank 5: Hypervisor
Nov 22, 2023, 04:07
umm, am I missing something... because if I don't have the same then how could redirect would happen? I mena because, we need to pass url while createEmailVerification...
and that url must be registered as Custom Domain? Or am I missing something...
Drake
Nov 22, 2023, 04:21
that URL needs to be for your CLIENT app, not SERVER
Drake
Nov 22, 2023, 04:21
no it doesn't have to be registered as custom domain
Vedsaga
Rank 5: Hypervisor
Nov 22, 2023, 04:22
umm, but if I don't register then getting error invalid agrument, that url can be 'localhost' or 'custom.com',
Drake
Nov 22, 2023, 04:23
you need to register a web platform
Vedsaga
Rank 5: Hypervisor
Nov 22, 2023, 04:23
ahhhh, so that need to web platform and not custom domain
Drake
Nov 22, 2023, 04:24
platforms are your allowed clients
Vedsaga
Rank 5: Hypervisor
Nov 22, 2023, 04:24
thank you ☺️ , all doubts are now clears
Haimantika
Nov 22, 2023, 04:39
Great! Should we mark this thread as “solved” then?
Vedsaga
Rank 5: Hypervisor
Nov 22, 2023, 04:40
yap 🙂
Haimantika
Nov 22, 2023, 05:10
[SOLVED] How to host .well-known/ for Deep Linking