AppwriteException: Invalid databaseId param: UID must contain at most 36 chars. Valid chars are a-z, A-Z, 0-9, and underscore. Can't start with a leading underscore
I am not getting this error when I'm hosting locally
But when I am opening my site deployed via vercel it's showing the error above.
I have registered my Vercel hostname on appwritre
TL;DR
Title: Error: Invalid `databaseId` param on Vercel deployment
Message: If you're receiving the error "AppwriteException: Invalid `databaseId` param: UID must contain at most 36 chars" on your Vercel deployment, it might be due to not setting the environment variables correctly. Check if you have added the necessary variables in Vercel and deployed after setting them. Additionally, make sure your Vercel hostname is registered on Appwrite.
Solution: Set the environment variables correctly in Vercel and make sure to deploy after setting them. Register your Vercel hostname on Appwrite.