bolt.diy/functions/_middleware.ts
Chris Toshok e4a57bf59e
[PRO-974] add sentry for both client and server (#20)
Basically ran through the remix + cloudflare setup docs.
2025-02-20 14:13:19 -07:00

11 lines
326 B
TypeScript

import * as Sentry from '@sentry/cloudflare';
export const onRequest = [
// Make sure Sentry is the first middleware
Sentry.sentryPagesPlugin((_context) => ({
dsn: 'https://5465638ce4f73a256d861820b3a4dad4@o437061.ingest.us.sentry.io/4508853437399040',
})),
// if we ever add more middleware, add them below:
];