Hey everyone!
I've been delving into the server-side Next.js SDK and I was wondering if there's a JavaScript senseis around here to clarify something.
Currently, I've got a small demo server file set up to retrieve account/session data and whatnot: https://paste.mozilla.org/6sZzqPwv
Additionally, I've created a simple account page that requires some client interaction: https://paste.mozilla.org/vPh4O7s3
As you can see, the account page functions as a client-side component, reaching out to a server function to fetch user data. In other words, the server component for fetching user data is inside a client component.
My question is: Is this approach considered safe? I understand this might be more of a Nextjs-related question, but I'm still getting the hang of all this, any guidance would be greatly appreciated.
I think it's a common path, you just have to use the web sdk in the client side and the node sdk in the server, make sure to not expose any credential, remember that NEXT_PUBLIC_ environment variables are visible by the browser and any other without that isn't
Recommended threads
- Google Auth not working in a React App
Authentication with Google has failed. It redirects back to the signin route in React. Attached screenshots for configuration of Google console and Appwrite Go...
- Bug Report: Crash when trying to createR...
https://github.com/appwrite/sdk-for-android/issues/96 I think the bug is related with this one https://discord.com/channels/564160730845151244/1443887021314539...
- Dokploy docker compose
Hey guys hope y'all doing well, I was wondering if anyone could share a working 1.8.0 docker-compose that works with Dokploy I tried making it but it just does...