* Determines if sourcemap uploads should be skipped.
(nitro: Nitro, options?: SentryNitroOptions)
| 22 | * Determines if sourcemap uploads should be skipped. |
| 23 | */ |
| 24 | function shouldSkipSourcemapUpload(nitro: Nitro, options?: SentryNitroOptions): boolean { |
| 25 | return !!( |
| 26 | nitro.options.dev || |
| 27 | nitro.options.preset === 'nitro-prerender' || |
| 28 | nitro.options.sourcemap === false || |
| 29 | (nitro.options.sourcemap as unknown) === 'inline' || |
| 30 | options?.sourcemaps?.disable === true |
| 31 | ); |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Handles the actual source map upload after the build completes. |