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
- My DBs disappeared from my console and g...
Hello Team, Out of the blue, my express app started encountering 401 errors in fetching data. Upon logging into my console, I cannot see my databases anymore ...
- Copying one project into another
Hi there, I wanted to use the New York location for my project, so I switched to paid and created a new project. Is there a quick way to copy the contents of m...
- can't login
I'm not sure how to debug this ```appwrite | [Error] Timestamp: 2025-06-02T19:25:41+00:00 appwrite | [Error] Method: appwrite | [Error] URL: / appwrite | [...
