Test a site built with Lovable
Apps built with Lovable usually work in the editor’s preview, and the problems show once real visitors use the published site: a secret key left in front-end code, pages that return “not found” when reloaded, a layout that breaks on a phone, or a page that stays blank after one script error. Glitchmark opens the published site in real browsers and lists each one, with a prompt you can paste back into Lovable on paid plans.
Why sites built with Lovable break
Lovable apps are commonly single-page React apps that use Vite for the build and Supabase for the database and sign-in. That is a good stack for shipping fast, and it has predictable weak spots. The code that runs in the visitor’s browser is the code anyone can read, and a single-page app draws its pages with JavaScript, so a failure in one script can leave a blank screen.
An AI builder also tests what you asked for in the preview. It does not open every page at phone width, reload every address or read your page source for secrets.
Common problems
- A secret key in front-end code. A key that should live on a server, such as a Supabase service role key or a payment or AI key, ends up in a script every visitor downloads. A Supabase anon key and a Stripe publishable key are meant to be public and are not reported.
- Pages that fail when reloaded. A single-page app needs the host to send every address to the app. Where it does not, a deep link such as /pricing returns “not found” on reload or when shared.
- Empty pages for search engines and link previews. When the page is drawn only in the browser, a crawler sees an empty page.
- Layouts that break on a phone, such as a table or image with a fixed width.
- Source maps and development builds left public, which let anyone read your original code.
How Glitchmark checks a Lovable site
Paste the address of the published site. Glitchmark detects that it is a React app on Vite with Supabase, opens each page it reaches in a real browser at 390, 768 and 1440 pixels, up to your plan’s page limit, and runs its checks: exposed keys, source maps, failing requests, JavaScript errors, layout, links and images, and a review of each screenshot by AI.
The report lists each problem in plain English with how to see it yourself. Paid plans add fix prompts. If sign-in is part of your app: On Starter and up, Glitchmark can sign in with a test account you give it and check the pages behind the login. It does not click through flows or submit other forms.
Prompts to paste into Lovable
Examples of the kind of instruction that fixes these problems. Change the names to match your project, and check the result in the published site.
A secret key in the front end
My site has a secret API key in front-end code, so anyone can read it. Move every call that uses it into a Supabase Edge Function that reads the key from a secret environment variable, and have the front end call that function instead. Do not leave the key anywhere in the client code or the repository. Tell me which key to rotate in the service’s dashboard.
Pages that return “not found” on reload
When I open /pricing directly or reload it, I get a “not found” page. Make sure every route of this single-page app is served by index.html on the host I deploy to, by adding the rewrite rule that host needs, and check that deep links work.
A layout that runs off a phone screen
On a 390 pixel wide screen, the element with the class pricing-table is wider than the screen and the page scrolls sideways. Make it fit: remove fixed widths, use max-width: 100% and let wide content scroll inside its own container. Check the page at 390, 768 and 1440 pixels.
Questions
Does Glitchmark work with Lovable sites?
It checks any public website, whatever built it. For a site built with Lovable it recognises the React, Vite and Supabase pattern and adds the checks that suit it.
Can I test a Lovable app before I publish it?
Glitchmark needs an address it can reach on the public internet, so it checks the published site or a public preview address, not the editor.
Is Glitchmark made by Lovable?
Glitchmark is not affiliated with, endorsed by or partnered with the company behind this tool. The name is used only to say what Glitchmark can check.
Will a scan find every bug in my app?
It finds what can be seen from outside by opening pages. It does not know what your app is meant to do, so check that your main flows work yourself.
Keep reading
Check your whole site, not one page
Glitchmark opens your site in real browsers on phone, tablet and laptop, finds what is broken and explains each problem in plain English. Your first scan of one site is free, with part of the report.
Scan my site freeLast updated