How to test a Lovable app before launch
By Afaq Ahmad. Published , last updated .
To test a Lovable app before launch, publish it, then check the published site, not the editor: look for secret keys in the page code, reload a deep link, view it at phone width, open the browser console for errors and try sign-in with a fresh account. A scan with Glitchmark covers the first four for every page it can reach, up to your plan’s page limit.
Free tool for this: Free exposed API key checker. It checks one page, with no sign-up.
Test the published site, not the preview
The editor’s preview is the friendliest place your app will ever run. Test the address your visitors will use. If you have not published yet, publish to a test address first. Lovable and your host decide how that address is made, so check their documentation for the steps.
1. Look for secret keys in the front end
Code that runs in the browser can be read by anyone. A Supabase service role key, a payment secret key or an AI provider key there can be copied and used as you. A Supabase anon key and a Stripe publishable key are meant to be public.
Open your published page, view the page source and search the scripts it loads for the names of the services you use. Or paste the address into the free exposed API key checker, which reads the page and its scripts and shows any secret key it recognises, masked. If you find one, create a new key, delete the old one and move the new one to a server function.
2. Reload a page other than the home page
Open a deep link, such as yoursite.com/pricing, directly and reload it. A single-page app needs its host to send every address to the app. If you get a “not found” page, visitors who share or bookmark that link will too. Fix it with the rewrite setting your host provides.
3. View it at phone width
Most visitors will arrive on a phone. Check each main page at about 390 pixels wide. Look for content that scrolls sideways, text that overlaps and buttons you cannot tap. The free mobile view checker shows one page at phone, tablet and laptop width and marks what runs off the screen.
4. Read the browser console
In Chrome press F12 and open the Console tab, then click through the main pages. Red errors mean a script failed, which often means a feature is dead even though the page looks fine. Also open the Network tab and look for failed requests.
5. Try sign-in with a fresh account
Sign up as a new user, confirm the email, sign out and sign in again. Check the password reset email arrives. These are the flows an AI builder is least likely to have tested for you, and a Glitchmark scan does not perform them: it does not sign up, confirm emails or submit forms. On Starter and up it can sign in with a test account you give it, to check the pages behind a login.
Then check every page
The steps above check one page at a time. A Glitchmark scan opens every page it can reach, up to your plan’s page limit, at three widths, so the broken link on page 14 does not wait for a visitor to find it. Your first scan of one site is free, with part of the report. Paid plans show every issue.