Hey experts out there. Need your support with some strange behaviour.
I'm experimenting AppWrite with SSR NextJs app. on my laptop, everything runs as expected, and I could build some amazing stuff with it.
When tyring to deploy to AppWrite Sites, problems started.... while authenticating a user, cookies start to be a nightmare. It took me some days to go through the problem and identify that recomendation is to have a domain managed in Appwrite due third-party cookies. I embraced the idea, create a domain on GoDaddy and:
- delegated DNS to Appwrite configuring NS on GoDaddy
- create a custom domain "appwrite.<domain>" at project level and set CNAME appwrite to fra.cloud.appwrite.io
- create a custom domain "dev.<domain>" at sites level and set CNAME dev to appwrite.network
On application, I'm using node-appwrite (server) to perform authentication but I'm getting HTTP 500 using the following code snippet:
const sdk = require("node-appwrite"); const client = new sdk.Client(); client .setEndpoint("https://appwrite.<domain>/v1") .setProject("<PROJECT_ID>") .setKey("<YOUR_API_KEY>");
In logs, I can see and error message "TypeError: fetch failed"
Does anybody face this problem? any clue on what I'm doing wrong?
thanks in advance for your help
Recommended threads
- All projects deleted
Hello, from the appwrite console last week I re-activated some of my old project and published them, yesterday I checked and none of the apps were working, now ...
- cant resume project
Invalid console fingerprint event i try man time
- general_route_not_found - Auth Guide
If you’ve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...