Security
Monitoring
Error tracking with Sentry.
Creator uses Sentry for error tracking across server and edge runtimes.
Setup
- Create a project at sentry.io
- Set environment variables:
NEXT_PUBLIC_SENTRY_DSN=""
SENTRY_DSN=""
# Only needed for source map uploads in CI/production builds
SENTRY_AUTH_TOKEN=""
SENTRY_ORG=""
SENTRY_PROJECT=""Leave SENTRY_DSN empty to disable Sentry entirely — the init files check for it before initializing.
Configuration files
| File | Purpose |
|---|---|
sentry.server.config.ts | Server-side Sentry init |
sentry.edge.config.ts | Edge runtime Sentry init |
next.config.ts | Wraps config with withSentryConfig() |
Trace sample rate
The default tracesSampleRate is 1 (100% of traces). For high-traffic applications, lower this in the config files to reduce costs.