(sentryOptions?: SentryNitroOptions, sentryEnabledSourcemaps?: boolean)
| 7 | * Creates a Nitro module to setup the Sentry SDK. |
| 8 | */ |
| 9 | export function createNitroModule(sentryOptions?: SentryNitroOptions, sentryEnabledSourcemaps?: boolean): NitroModule { |
| 10 | return { |
| 11 | name: 'sentry', |
| 12 | setup: nitro => { |
| 13 | instrumentServer(nitro); |
| 14 | setupSourceMaps(nitro, sentryOptions, sentryEnabledSourcemaps); |
| 15 | }, |
| 16 | }; |
| 17 | } |
no test coverage detected