When using Node.js Appwrite with Next.js:
Based on the documentation and community feedback, it seems like node-appwrite
isn't very mature yet. It struggles with server-side rendering (SSR), especially with user authentication in middleware.
I've also seen recommendations to use the Appwrite web client instead of the server SDK. Some say that making SSR work requires hacks like changing the cookie host, setting up proxies, and other workarounds.
Most tutorials (except for Appwrite’s own) use the web client instead of node-appwrite
, which makes me wonder if it's just a lack of knowledge causing people to avoid the Node.js version.
Is this accurate? If so, can we use both and rely on the server SDK only when the web client isn’t enough?
Thanks for the clarification.
Some references:
- https://github.com/Meldiron/appwrite-ssr-next-js
- https://appwrite.io/threads/1117650321141932072
- https://appwrite.io/threads/1278370535402897408
- https://appwrite.io/threads/1288914362312163401
- https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-1 (the one SSR tutorial from appwrite with next.js)
Recommended threads
- 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...
- apple exchange code to token
hello guys, im new here 🙂 I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...