Error monitoring for v0 apps
v0 ships you a Next.js app. This tells you when it breaks in front of real users.The fast way: ask your AI tool
v0 generates Next.js, so the snippet goes in your root layout.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 inside the <head> of your root layout — usuallyapp/layout.tsx, 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.app/layout.tsx — 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>);}