Nuxt guide
Nuxt error tracking
Errilo receives your Nuxt errors from the official @sentry/nuxt SDK: Nitro server routes and Vue in the browser. Already on Sentry? Only the DSN changes.
Errilo is in development. This guide describes the setup our compatibility suite tests today; the private beta opens in summer 2027.
What gets caught
- Errors thrown in Nitro server routes (
server/api/…), with the request method and path. - Errors in Vue components in the browser, through the Vue error handler set up by the SDK.
Our compatibility suite builds a Nuxt 4 app, starts it in production mode and checks that both errors reach Errilo, for every SDK version listed below.
Setup
These are the files from Sentry’s setup for Nuxt. If you already have them, keep them as they are.
export default defineNuxtConfig({
modules: ["@sentry/nuxt/module"],
runtimeConfig: {
public: {
sentry: { dsn: "" }, // set by NUXT_PUBLIC_SENTRY_DSN
},
},
});import * as Sentry from "@sentry/nuxt";
Sentry.init({
dsn: useRuntimeConfig().public.sentry.dsn,
});import * as Sentry from "@sentry/nuxt";
Sentry.init({
dsn: process.env.SENTRY_DSN,
});In production, load the server config before the app with --import, and set the DSN of your Errilo project. Both DSNs are read at runtime: no rebuild needed to change them.
SENTRY_DSN=https://<key>@ingest.errilo.com/<project> \
NUXT_PUBLIC_SENTRY_DSN=https://<key>@ingest.errilo.com/<project> \
node --import ./.output/server/sentry.server.config.mjs .output/server/index.mjsKeep --import: with SDK 9 and 10, server errors don’t arrive without it.
Readable stack traces
In development: source map upload and readable stack traces will be ready for the private beta.
The @sentry/nuxt module uploads your source maps at build time. Errilo implements the same upload API: give the plugin Errilo’s address and an Errilo token, and stack traces point to your TypeScript source instead of the compiled code. See the migration guide.
Tested versions
| Major version | Tested version |
|---|---|
| v9 | @sentry/[email protected] |
| v10 | @sentry/[email protected] |
| v11 | @sentry/[email protected] |
With Nuxt 4.