I am following SSR tutorial from Appwrite in Nextjs 14: https://appwrite.io/docs/products/auth/server-side-rendering
How do I get user details in the middleware?
I can get session cookie, but not sure how do I get the user from it?
const session = request.cookies.get(SESSION_COOKIE);
When I try to initialize Client() from node-appwrite, it throws this error:
node:stream
Module build failed: UnhandledSchemeError: Reading from "node:stream" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
User details in middleware (Next.js)
Recommended threads
- Site SSR TanStack
Hey, I’m deploying a React + TanStack app on Appwrite Hosting. Can Appwrite Sites/SSR use Bun for runtime/build, or is it Node-only? I’m using Bun locally and w...
- IP / CIDR For Appwrite Cloud Functions
[I saw this message](https://discord.com/channels/564160730845151244/1330335737954046067) that went unanswered. I have the same question: what IP addresses / CI...
- Image transformations
On flutter web, when using image transformations, the results are being cached. When I replace an image, the old version still appears. Is it possible to manual...