@interfere/vite captures browser errors and sessions from your React app. Its build plugin connects those events to a release and uploads source maps for readable stack traces.
You need Vite 5 or later, React 19 or later, and Node.js 20 or later. For a server-rendered Start app, follow TanStack Start.
Setup
1
Install the packages
2
Set your keys
Copy the keys from your surface into the build environment:Use
production for production builds. Only the public key gets a VITE_ prefix. Prefixing the secret key would expose it in the browser bundle.3
Connect your build
Enable source maps and add The plugin uploads source maps and registers the build’s release. See Releases and source maps for custom build environments.
interfere() to your Vite plugins. Keep your other plugins and app configuration.vite.config.ts
4
Initialize and wrap your app
Call Set consent during initialization if capture must wait for a visitor’s choice. Review replay masking before recording customer sessions.
init() in your browser entry point, before React renders.src/main.tsx
Verify capture
After initialization, report a test error from an existing button or event handler in your staging app:Run capture only in production
Run capture only in production
The Vite browser SDK runs whenever it is initialized. To disable it during local development, use: