Back

node-appwrite - not mature?

  • 0
  • General
  • Auth
  • Web
Zynth
27 Sep, 2024, 04:29

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:

TL;DR
Node.js Appwrite (`node-appwrite`) struggles with server-side rendering (SSR) and user authentication in middleware. Recommendations suggest using the Appwrite web client over the server SDK due to these challenges. Most tutorials opt for the web client. It's advised to use the server SDK only when the web client falls short.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more