Error monitoring for Lovable apps
Know when your Lovable app breaks — in plain English, before your users email you.The fast way: ask your AI tool
You built this by chatting with Lovable, so let Lovable do the install too.It will work out where the snippet goes, put it there, and check that it worked. If it gets stuck, the instructions tell it how to recover.Paste this into your chatInstall Vigil error monitoring in this app. Follow the instructions at https://vigill.dev/skill?key=vg_pub_YOUR_KEY exactly, then confirm installation succeeded.
The manual way
Paste this in the <head> of your app’s main HTML file — usuallyindex.html, then redeploy.This key is meant to be public — it can only send errors in, never read anything out. Do not move it into an environment variable; static hosts have nothing to read one back at runtime.index.html — html<script src="https://vigill.dev/v.js" data-vigil-key="vg_pub_YOUR_KEY"></script>
When a React component throws while rendering, React removes the whole page and the browser never reports it. Wrapping your app catches those, and shows your users a message instead of a white screen.
App.tsx — tsximport { VigilErrorBoundary } from '@vigil/react';export default function App() {return (<VigilErrorBoundary><YourApp /></VigilErrorBoundary>);}