Back

[SOLVED] How to host .well-known/ for Deep Linking

  • 0
  • General
  • Cloud
Vedsaga
21 Nov, 2023, 07:43

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...

TL;DR
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
Vedsaga
21 Nov, 2023, 07:45

https://discord.com/channels/564160730845151244/1094547188069183588

earlier as well someone ask it, not sure how they did...

Drake
21 Nov, 2023, 20:45

uhh you shouldn't have the well known and appwrite custom domain be the same

Drake
21 Nov, 2023, 20:45

the well known should be for your client-side app. the custom domain is for the server side

Vedsaga
22 Nov, 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
22 Nov, 2023, 04:21

that URL needs to be for your CLIENT app, not SERVER

Drake
22 Nov, 2023, 04:21

no it doesn't have to be registered as custom domain

Vedsaga
22 Nov, 2023, 04:22

umm, but if I don't register then getting error invalid agrument, that url can be 'localhost' or 'custom.com',

Drake
22 Nov, 2023, 04:23

you need to register a web platform

Vedsaga
22 Nov, 2023, 04:23

ahhhh, so that need to web platform and not custom domain

Drake
22 Nov, 2023, 04:24

platforms are your allowed clients

Vedsaga
22 Nov, 2023, 04:24

thank you ☺️ , all doubts are now clears

Haimantika
22 Nov, 2023, 04:39

Great! Should we mark this thread as “solved” then?

Vedsaga
22 Nov, 2023, 04:40

yap 🙂

Haimantika
22 Nov, 2023, 05:10

[SOLVED] How to host .well-known/ for Deep Linking

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more