Sentry plugin for Elysia server.
This plugin has NOT been tested on the Node runtime.


-
Assign environment variables (optional).
A. Assign your DSN (from step 1) to
SENTRY_DSN
.B. Assign your environment name (recommend
'development' | 'staging' | 'production'
) toSENTRY_ENVIRONMENT
. -
Import and use the plugin.
import { sentry } from 'elysiajs-sentry';
import { Elysia } from 'elysia';
const app = new Elysia()
.use(sentry())
.listen(3000);