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
- Startup credits or promo code inquiry fo...
Hello Appwrite team, Happy New Year! I hope you’re all doing well. I’m currently exploring backend solutions for a new SaaS project and Appwrite came highly re...
- Console down yet again ?
Seeing it stuck on the "loading" screen yet again ... second time today. (last time 10+ hours ago). 'roles' and 'plan' requests just hung. Meanwhile, appwrit...
- Function Building show 500 Error
Region: sfo Temple: Starter Function Runtime: Nodejs 22 What happened? Before 2 minutes it show ‘server error.","code":500,"version":"0.7.24"}’ after it show c...