
ok, so it would be <function_id>.mycname.com ?

For that I would need a A record

If that's the case, this CNAME inside the function would be useless, it would be the same as the project CNAME

No, a cname record pointing *.mycame.com to your appwrite instance

The custom function domain is for an additional custom one different than the default function domain

For example, on cloud we have our app domain as cloud.appwrite.io. we have *.appwrite.global pointing to cloud.appwrite.io and appwrite.global configured as the function domain so that when a function is created, people get a url for their function automatically. However, if people want a custom one like mycustom.domain, they can add a custom function domain

Ok, but every function will need it's own A record right?

<function_id>.whateverdomain.com

No, CNAME if you want a custom one

Then how do I point the specific function to the domain

Tha'ts what I'm doing right now and it's not working

I have my appwrite main domain at appwrite.mydomain.com: A record to my server IP

if I create a CNAME to that domain on my function settings, it will be just a CNAME to that domain, the server has no clue which function it is

a cname is an alias

No, you create a wildcard one so that *.whateverdomain.com points to your main domain

oh, ok, but that wildcard is an A record

No CNAME

The point is to make it so you don't have to change multiple DNS records if your IP address needs to change

I've done that, created a CNAME wildcard *.fun.myotherdomain.com pointing to my appwrite.mydomain.com, but still error


Sure, that's what we want, to have everyting organized

Is this from a function from before you set the environment variable?

Nope, it's the regular function

no env vars, just a console log

I meant the function domain env var
Recommended threads
- PKCE, Etsy, OIDC, External OAuth provide...
first, thanks for creating and maintaining this software. I'm almost glad i couldn't convince my (wise and wonderful) senior devs to try pocketbase on productio...
- Still an issue? On user deletion, target...
This has been mentioned here: https://discord.com/channels/564160730845151244/1295830646039515146 and as a Github issue here: https://github.com/appwrite/appwri...
- Appwrite database is rounding int values
Hi, i just noticed that appwrite is rounding the value 608542412536545279 to 608542412536545300 in my int array. It seems to somewhat relate to this github iss...
