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
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...
- Rate Limit of project
AppwriteException: Rate limit for the current endpoint has been exceeded. Please try again after some time. So , how much time I have to wait and why does it h...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...