#How do I really secure my enviroment variables.

1 messages · Page 1 of 1 (latest)

untold fox
#

Hello, new to Next js and I'm building a project that includes an API and supabase. I read that interacting with the database in a "use client" file exposes the enviroment variables and would lead to hacks basically and that I should use ssr. The thing is, I'm using states on most of my files where I need to fetch stuff aswell, Idk how to work around this hurdle really, resources online are not helping. I'd appreciate someone who explains it like I'm 4 🙏

native bloomBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)