Back to Docs
Recipe

Sentry Setup

Wire Meridian into Sentry for real-time error tracking, release health, and crash reporting across your entire stack.

Prerequisites

  • A Sentry account with a project created.
  • Your DSN from Project Settings → Client Keys.
  • Meridian installed in your project.

Step 1 — Install the SDK

npm install @sentry/nextjs

Step 2 — Create the config

Add a sentry.client.config.ts and sentry.server.config.ts at your project root.

import * as Sentry from "@sentry/nextjs";

Sentry.init({
  dsn: "YOUR_DSN_HERE",
  tracesSampleRate: 1.0,
  environment: process.env.NODE_ENV,
});

Step 3 — Wire up Next.js config

const { withSentryConfig } = require("@sentry/nextjs");

const nextConfig = { /* your config */ };

module.exports = withSentryConfig(nextConfig, {
  silent: true,
  org: "your-org",
  project: "meridian",
});

Step 4 — Deploy and verify

Deploy to Vercel. Trigger a test error or check the Sentry dashboard — you should see your first event within seconds.

Need deeper integration? Read the full Meridian docs or reach out on Discord.