Skip to main content
This page configures browser capture in Next.js, Vite + React, and TanStack Start. For Node.js and NestJS server processes, set the service name and environment through OpenTelemetry resource attributes.

Service names

Give each process a stable service name, such as storefront or checkout-worker:
The app public key selects the Interfere app receiving telemetry. The service name identifies the process within that telemetry.

Environments

On Vercel and Cloudflare, the SDK reads the environment from the platform. On other hosts it falls back to NODE_ENV. To label a self-hosted staging deployment, set INTERFERE_ENVIRONMENT=staging in its environment. Interfere filters local-like environments such as development, local, and test before ingestion. Verify on a deployed environment such as a preview or staging deployment, or change environment filtering for the app.

Capture features

Configure features on the InterfereProvider you added during installation. Import it from @interfere/next/provider for Next.js or @interfere/vite/provider for Vite and TanStack Start. All features default to enabled, subject to consent. For example, disable replay and page events:
Set init({ tracing: false }) to omit browser tracing. Set errorBoundary={false} on the provider if you already report React render errors through another boundary.

Custom ingest domain

Configure a subdomain for telemetry if requests to the default endpoint are blocked by browser extensions. Add the CNAME using the target shown in your dashboard, then set apiHost. For Next.js:
next.config.ts
For Vite, pass apiHost to the build plugin:
Interfere provisions TLS for the domain. Telemetry requests do not send cookies.