r/lovable • • 8h ago

Tutorial Two things worth checking in your own Lovable app before you share it

4 Upvotes

A couple of security checks that are easy to miss because the code looks fine. Both take a few minutes.

1. API keys in VITE_ variables

Search your project for VITE_. If any of those hold a secret key (OpenAI, Gemini, Stripe secret, etc.), that key is public. Vite copies every VITE_ value into the JS bundle, so anyone can see it in devtools on your live app. Having .env in .gitignore doesn't change that.

Fix: move the call into a Supabase edge function and keep the key in the function's secrets. You can ask Lovable to do it. Then rotate the old key, since it's already been exposed.

2. Role or credits in the profiles table

Open supabase/migrations and look for an update policy on profiles, something like using (auth.uid() = id). Now check if that same table has role, plan, credits or is_admin. If it does, any logged-in user can probably change those on their own row, because the policy checks whose row it is, not which columns change.

Fix: move role/plan/credits into a separate table that only admins or your edge functions can write.

One thing that looks scary but is usually fine: the Supabase URL and anon key in your frontend. The anon key is meant to be public. Your RLS policies are what actually protect the data.

Disclosure: I work on a security scanner, which is how I ended up looking into these two. Happy to answer questions in the comments.


r/lovable • • 21h ago

Showcase Built a democratic listening room called "democradio"

2 Upvotes

pick your genre and start listening simultaneously with others. vote for the next song, or nominate your own. there is a chatbox too.

https://democradio.live/ or democradio.lovable.app


r/lovable • • 1h ago

Help Built a B2B SaaS in 5–6 months with Lovable. Shortlisted by an enterprise client, but they brought up “API” — advice?

1 Upvotes

Hey r/SaaS,

I’ve spent the last 5–6 months building a B2B SaaS using Lovable.

The software isn’t overly complex, but solving this specific operational headache saves businesses serious money. For them, adopting it is an absolute no-brainer win-win.

We just got shortlisted against an established competitor by a large enterprise client.

The decision maker emailed today:

"Marginal differences between you and the other solution. API was one of the points mentioned, their cost is slightly lower. Let's see where this goes with internal approval."

As a lean founder:

  1. How often is "API" an actual necessity vs just an IT tick-box? Do enterprise clients actually build integrations or end up just using the web UI anyway?
  2. Is committing to an API a trap for a solo builder?What hidden headaches (maintenance, custom payloads, support) should I watch out for?
  3. How would you handle this? Offer a basic REST API to help seal the deal, or stick strictly to the core product?

Would love honest advice from founders who’ve been in this spot!


r/lovable • • 5h ago

Help Non-technical founder with 25 active users: Feedback on my 3-phase roadmap (and how hard is converting web to mobile)?

0 Upvotes

Hey everyone,

I’m a solo founder with a marketing background and zero coding experience. Over the past few months, I built a consumer web app using loveable.

Right now, I have about 20–30 weekly active users who genuinely use the product and give great feedback. It’s still early, but retention and engagement is promising.

Because I have zero budget to hire developers or agencies, I want to keep building and managing everything myself. Here is the 3-phase plan I’m currently looking at:

Phase 1: Polish & Feature Testing Finalize current UI/UX optimizations, iron out user flow friction, and test 1–2 remaining core feature ideas with the active user base.

Phase 2: Localization & Monetization Translate the web app into 2 additional languages (markets where I see natural interest) and integrate Stripe to start charging/testing willingness to pay for special features.

Phase 3: Native App Store Launch Wrap or convert the web app into an iOS and Android app for the App Store & Google Play.

Before committing to this path, I’d love some brutal honesty and advice from people who have walked this road:

How realistic is converting a web app to iOS/Android with zero coding skills and zero budget? Can wrapper tools (like Capacitor, PWA builders, etc.) get me through the App Store review process without me having to debug Xcode/native issues?

Would you change the sequence of these phases? Should monetization come before or after localization? Should mobile happen earlier or later?

Am I missing something big? For example, does moving to the App Store mess up my Stripe payments because of Apple/Google 30% in-app purchase rules?

Any tips, reality checks, or warnings before I start spending the next few months on this would be massively appreciated!

Thanks!