Back

Multiple Hostname in appwrite

  • 0
  • Web
  • Cloud
Beecoder+
4 Nov, 2024, 10:37

I need to connect 2 hostname (localhost and *.vercel.app) while adding a web app on appwrite cloud, but it only accepts one hostname either localhost or vercel! Is it possible to use Multiple Hostname for Connecting both to Appwrite?

TL;DR
Configure CORS settings in Appwrite for both hostnames and ensure DNS settings point `*.vercel.app` to Appwrite. Add both `localhost` and `*.vercel.app` as custom domains in Appwrite project settings. This allows connecting multiple hostnames to Appwrite.
Guri
4 Nov, 2024, 10:41

Yes, it is possible to connect both localhost and *.vercel.app to Appwrite by using custom domains.

Guri
4 Nov, 2024, 10:41
  • Go to your Appwrite project settings and add both localhost and *.vercel.app as custom domains.
Guri
4 Nov, 2024, 10:42
  • Ensure your DNS settings are correctly configured to point *.vercel.app to your Appwrite instance
Guri
4 Nov, 2024, 10:42
  • Make sure to configure (CORS) settings in Appwrite to allow requests from both hostnames
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