A news portal in seven languages where the journalists publish themselves. They write, edit and p...A news portal in seven languages where the journalists publish themselves. They write, edit and p...
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
A news portal in seven languages where the journalists publish themselves.
They write, edit and publish their own articles from an admin dashboard, with sections, tags and bylines. Live exchange rates and weather on every page, and readers can install the portal as an app with push notifications.
Portals connects cities on four continents, and press arrives in waves. The site is built so the team publishes new locations themselves, and stays fast when the traffic spikes. I still maintain it. portals.org
Welcome to Contra, Prachi 👋 Always good to see more MERN developers here. One tip from my side: post a small project with a live link and a short note on one problem you solved. It says much more than a skills list. Good luck!
If a key ships to the browser, anyone can copy it.
In Next.js, every variable that starts with NEXT_PUBLIC_ ends up in the JavaScript your visitors download. That is fine for the Supabase anon key. It is not fine for the service role key, which skips every RLS policy.
A quick check after a build
grep -r "service_role" .next/static
If that finds anything, rotate the key in Supabase and move every call that needs it to the server.
A common shortcut when a query fails under RLS is to switch to the service role key. The error goes away and the hole stays.
Good habit. I'd put that grep in CI too, so it runs on every build and not only when someone remembers. Same goes for AI keys: an OpenAI key in the browser can burn through credits fast, so I keep those calls in a server route and send only the result to the client.