Rank 1: Thread
**Noob Question: ** How do I use a custom domain to make a REST API with Appwrite Functions?
Environment:
Appwrite: 1.4.13
Function Runtime: swift-5.8
self-host: digitalocean
domain: piratesparadox.net
subdomain for functions: api.piratesparadox.net
domain provider: squarespace
_APP_DOMAIN=piratesparadox.net
_APP_DOMAIN_FUNCTIONS=api.piratesparadox.net
_APP_DOMAIN_TARGET=piratesparadox.net
_APP_ENV=production
I’m trying to follow the custom domain docs here:
https://appwrite.io/docs/products/functions/deployment#domains
When I create a function deployment and add a custom domain, everything shows as verified.
However, when I try to make a request I keep getting a generic 500 error.
I’ve tried several variations:
https://api.piratesparadox.net/getPlayer?id=1
http://api.piratesparadox.net/getPlayer?id=1
https://api.piratesparadox.net/v1/getPlayer?id=1
I believe the attached screenshot from squarespace indicates that I have an SSL certificate?
Am I missing something obvious? Please let me know if you need more detail.