Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/llms-txt-hub / packages/observability/next-config.ts |
| Date | Not specified in source |
| Repository | Janady13/llms-txt-hub |
| Revision | e0f4bf978d4df168369c7601d9c5f5ea89e84377 |
| Branch | main |
| Path or archive member | packages/observability/next-config.ts |
| Original SHA-256 | 9d55a09ab90dc17a26225fdf7c9f6ac61793d21c4f0be6701b900ad046a49adc |
| Git blob SHA | 208f105b3c892824e127f13df4914bda15cb2bbe |
| Reading-copy SHA-256 | 9d55a09ab90dc17a26225fdf7c9f6ac61793d21c4f0be6701b900ad046a49adc |
Recovered source transcript
Download complete source text ↓29 lines · 0.8 KB
import { withSentryConfig } from '@sentry/nextjs'
import { keys } from './keys'
export const sentryConfig: Parameters<typeof withSentryConfig>[1] = {
org: keys().SENTRY_ORG,
project: keys().SENTRY_PROJECT,
// Only print logs for uploading source maps in CI
silent: !process.env.CI,
// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,
// Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers
tunnelRoute: '/monitoring',
// Webpack-specific options (no-ops with Turbopack)
webpack: {
treeshake: {
removeDebugLogging: true
},
automaticVercelMonitors: true
}
}
export const withSentry = (sourceConfig: object): object => {
return withSentryConfig(sourceConfig, sentryConfig)
}