Issue with 'Failed to construct 'URL': Invalid URL' after moving to production
- 0
- General
- Auth
- Cloud

Hi, I recently deployed my app into production but have discovered an issue. When I try and login, I just get the error Failed to construct 'URL': Invalid URL.
Now, I've created the platform and have set the hostname to be that of the production URL. Furthermore, I realised that my .env.local file which contains the api route, project Id, database Ids and collection Ids was not on production. So, I added the values to Vercel but I'm still getting the same error.
Any ideas?
Here's the variables and how I'm accessing them in my code:
Thank you!
Recommended threads
- Auth Email Template
Hi, i would like to ask is it doable to make multiple email sender in one project?
- Vite build permission failed
im trying to deploy a react site using appwrite sites and it keeps failing to build ```2025-08-10T20:20:15.168371867Z [20:20:15] [open-runtimes] Environment pr...
- How to proper delete a serverless functi...
I tried `appwrite functions delete --function-id 12345`, it deletes the online one, but even after trying `appwrite pull functions`, the local one in the appwri...
