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
- 401 missing scopes
help me i implemented sign up and login and it works well. but after i impement verifcation i got `AppwriteException: app.xxxxxxxxxxxxxxxxx@service.fra.cloud.a...
- Static Astro site returns empty HTML on ...
**Environment** - Appwrite Sites: Cloud - Framework: Astro v5.13.2 - Output mode: Static (output: 'static') - Build command: npm run build - Output di...
- Bug - You have more than 2 projects
I have only one project, but not selected. Im free user. But header still showing that im required to select
