Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
How to integrate Sentry into your Nuxt 3 app

Free Bootstrap 4 design system with over 100 components, pre-built pages, and a full UI kit for faster web projects.
Nuxt3 Sentry Recipe is a companion GitHub repository that demonstrates how to integrate Sentry error tracking into a Nuxt 3 application on both the server and client sides.
Nuxt3 Sentry Recipe is a small example repository that pairs with an article on lichter.io about adding Sentry to Nuxt 3. It takes a Nuxt 3 project and an environment file containing your Sentry DSN as input, and outputs a configured app that captures errors from the browser and from Nitro, Nuxt's server engine. The repository uses pnpm as its package manager and is structured as a "recipe" you can copy code from rather than a full application.
.env.example file; you copy it and provide your Sentry DSN and other values before running the app.pnpm i and pnpm dev, making pnpm the package manager used throughout.Nuxt 3 developers who want to add Sentry error tracking to their applications and prefer a working example over reading API docs. Developers using the Nitro server engine who need to capture server-side errors in addition to frontend errors. Also useful for anyone already comfortable with Sentry who wants a quick Nuxt 3 setup reference. The recipe is minimal enough for beginners to follow while showing production-relevant configuration.
The workflow is: clone the repository, run pnpm i to install dependencies, run pnpm dev to start the Nuxt dev server, and provide an environment file based on .env.example with your Sentry credentials. Then exercise your app to trigger errors and watch them appear in Sentry. The article linked in the README provides deeper explanation of each step.
Yes. The recipe requires an environment variable containing a Sentry DSN, which you can get by creating a project in your Sentry account. Without a valid DSN, error events cannot be sent.
Yes. The whole point of the recipe is to show Sentry integration on both the client side (browser) and server side (Nitro). You configure the SDK once and it captures errors from both environments.
The repository uses pnpm. The setup instructions list pnpm i for installing dependencies and pnpm dev for starting the development server.
Yes. The README says you can copy just the code you are interested in, so you can extract the Sentry integration pieces and paste them into your existing Nuxt 3 project.
