Each deployed function can have its own domain, generated or developer defined. You can use this domain to execute Appwrite Functions through HTTP methods. You can use common practices like using paths, query parameters, headers, HTTP methods, formdata, and all the typical HTTP concepts to implement Appwrite Functions.
Appwrite generates TLS certificates to enforce HTTPS on all Appwrite Functions domains, generated or custom. These domains are safe to use and access in production.
Learn about Function development
Generated domains
Each function automatically receives a region-specific domain that's ready to use immediately after deployment.
- In the Appwrite Console's sidebar, click Functions.
- Under the Domains tab, you'll find the generated domain from Appwrite.
The generated domain ends with .appwrite.run, which executes your function directly in the region where it is deployed. For example:
https://64d4d22db370ae41a32e.fra.appwrite.run
Edge network domain
You can add an appwrite.network domain to your function to take advantage of Appwrite's edge network. The appwrite.network domain routes requests to the nearest region based on the user's geographic location, reducing latency for globally distributed users.
To add an edge network domain:
- Navigate to the Appwrite Console's Functions page.
- Navigate to the Domains tab.
- Click on Create domain and add the
appwrite.networkdomain to your function.
The edge network domain ends with .appwrite.network. For example:
https://64d4d22db370ae41a32e.appwrite.network
Learn more about edge network
Add a custom domain
- Navigate to the Appwrite Console's Functions page.
- Navigate to the Domains tab.
- Click on Create domain.
- Input your domain and click Next.
- Copy the CNAME record and add it to your domain registrar.
- Click Go to console and wait for verification and certificate generation.
DNS records can take up to 48 hours to propagate.
When both VERIFICATION STATUS and CERTIFICATE STATUS are green, the new domain is ready to use.