Install by platform
Next.js and React
Install npm install @sentry/nextjs
The official @sentry/nextjs package works with Blipit by changing one value: the DSN. You get browser errors, server component and route handler errors, and traces on the Performance page. If you only want browser errors with the lightest footprint, the Any website script also works in a Next.js layout.
1Install
npm install @sentry/nextjs2Browser side
Create instrumentation-client.ts at the project root (or in src/). Next.js 15.3 and newer load it on every page.
import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: "https://<public key>@in.blipit.io/<project id>",
environment: process.env.NEXT_PUBLIC_VERCEL_ENV ?? "development",
release: process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,
tracesSampleRate: 0.2,
});
export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;3Server side
Two files: the server config, and instrumentation.ts, which Next.js calls on start and on every server error.
import * as Sentry from "@sentry/nextjs";
Sentry.init({
dsn: "https://<public key>@in.blipit.io/<project id>",
environment: process.env.VERCEL_ENV ?? "development",
release: process.env.VERCEL_GIT_COMMIT_SHA,
tracesSampleRate: 0.2,
});import * as Sentry from "@sentry/nextjs";
export async function register() {
if (process.env.NEXT_RUNTIME === "nodejs") await import("./sentry.server.config");
}
export const onRequestError = Sentry.captureRequestError;4Content Security Policy
If your app sets a CSP, add https://in.blipit.io to connect-src. Nothing else changes: the SDK is bundled with your code, so script-src needs no new host.
5Source maps (optional)
So stack traces show your source instead of the minified bundle, upload the maps for each release with the secret key. See Releases and source maps.
6Check it works
Add a button that throws, or run this in the browser console. Open Issues in app.blipit.io. The first event appears within a few seconds, grouped into an issue, and the people in charge get an email.
Sentry.captureMessage("Hello from Next.js");Good to know
- Skip withSentryConfig in next.config: it uploads source maps to Sentry, not to Blipit.
- Plain React without Next.js: npm install @sentry/react and call Sentry.init with the same DSN before rendering.
- Lighter alternative: put the Any website script in app/layout.tsx with next/script. It gives browser errors, web vitals and replays without a package.
Stuck? Email support@blipit.io. Keys and the exact DSN for each project are under API keys in app.blipit.io.

Sign in