How do I really secure my enviroment variables.
Unanswered
Bobolink posted this in #help-forum
BobolinkOP
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 🙏
1 Reply
if you're using supabase, follow their RLS guide and official guide to setup their sdk and you should be good