Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 17 additions & 28 deletions apps/captainofbass.com/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { withSentryConfig } from '@sentry/nextjs'
import { withSentryConfig } from '@sentry/nextjs/config'

const nextConfig = {
cacheComponents: true,
Expand All @@ -20,42 +20,31 @@ const nextConfig = {
}
}

export default withSentryConfig(
nextConfig,
{
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options
export default withSentryConfig(nextConfig, {
// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/build/
org: 'captain-fs',
project: 'captainofbass',

// Suppresses source map uploading logs during build
silent: true,
org: 'captain-fs',
project: 'captainofbass'
},
{
// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/

// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,

// Transpiles SDK to be compatible with IE11 (increases bundle size)
transpileClientSDK: true,
// Suppresses source map uploading logs during build
silent: true,

// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers. (increases server load)
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
// side errors will fail.
tunnelRoute: '/monitoring',
// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,

// Hides source maps from generated client bundles
hideSourceMaps: true,
// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers. (increases server load)
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
// side errors will fail.
tunnelRoute: '/monitoring',

webpack: {
// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
treeshake: { removeDebugLogging: true },

// Enables automatic instrumentation of Vercel Cron Monitors.
// See the following for more information:
// https://docs.sentry.io/product/crons/
// https://vercel.com/docs/cron-jobs
automaticVercelMonitors: true
}
)
})
4 changes: 4 additions & 0 deletions apps/captainofbass.com/sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@

import { init, replayIntegration } from '@sentry/nextjs'

import { dataCollection } from './sentry.data-collection'

init({
dsn: 'https://a0dc6d8f0544a8b4703ef87b50987276@o4507117455015936.ingest.us.sentry.io/4507117555875840',

dataCollection,

// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1,

Expand Down
27 changes: 27 additions & 0 deletions apps/captainofbass.com/sentry.data-collection.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import type { init } from '@sentry/nextjs'

// `@sentry/nextjs` does not re-export the `DataCollection` type from
// `@sentry/core`, which is not a direct dependency here.
type DataCollection = NonNullable<Parameters<typeof init>[0]['dataCollection']>

/**
* Sentry v11 replaced `sendDefaultPii` with `dataCollection`, and an unset
* `dataCollection` collects everything (cookies, user info, request and
* response bodies). This is the v10 default these apps ran with, per the
* v10 to v11 migration guide.
*/
const PII_HEADER_DENYLIST = ['forwarded', '-ip', 'remote-', 'via', '-user']

export const dataCollection: DataCollection = {
userInfo: false,
cookies: false,
httpHeaders: {
request: { deny: PII_HEADER_DENYLIST },
response: { deny: PII_HEADER_DENYLIST }
},
httpBodies: [],
urlQueryParams: { deny: PII_HEADER_DENYLIST },
genAI: { inputs: false, outputs: false },
databaseQueryData: false,
graphQL: { document: false, variables: false }
}
3 changes: 3 additions & 0 deletions apps/captainofbass.com/src/instrumentation.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { init } from '@sentry/nextjs'

import { dataCollection } from '../sentry.data-collection'

const dsn =
'https://a0dc6d8f0544a8b4703ef87b50987276@o4507117455015936.ingest.us.sentry.io/4507117555875840'

const baseConfig = {
dsn,
dataCollection,
tracesSampleRate: 1,
debug: false,
enabled: process.env.NODE_ENV === 'production'
Expand Down
45 changes: 17 additions & 28 deletions apps/mikeallisonjs.com/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { withSentryConfig } from '@sentry/nextjs'
import { withSentryConfig } from '@sentry/nextjs/config'

/** @type {import('next').NextConfig} */
const nextConfig = {
Expand All @@ -24,42 +24,31 @@ const nextConfig = {
}
}

export default withSentryConfig(
nextConfig,
{
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options
export default withSentryConfig(nextConfig, {
// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/build/
org: 'captain-fs',
project: 'mikeallisonjs',

// Suppresses source map uploading logs during build
silent: true,
org: 'captain-fs',
project: 'mikeallisonjs'
},
{
// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/

// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,

// Transpiles SDK to be compatible with IE11 (increases bundle size)
transpileClientSDK: true,
// Suppresses source map uploading logs during build
silent: true,

// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers. (increases server load)
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
// side errors will fail.
tunnelRoute: '/monitoring',
// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,

// Hides source maps from generated client bundles
hideSourceMaps: true,
// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers. (increases server load)
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
// side errors will fail.
tunnelRoute: '/monitoring',

webpack: {
// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
treeshake: { removeDebugLogging: true },

// Enables automatic instrumentation of Vercel Cron Monitors.
// See the following for more information:
// https://docs.sentry.io/product/crons/
// https://vercel.com/docs/cron-jobs
automaticVercelMonitors: true
}
)
})
4 changes: 4 additions & 0 deletions apps/mikeallisonjs.com/sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@

import { init, replayIntegration } from '@sentry/nextjs'

import { dataCollection } from './sentry.data-collection'

init({
dsn: 'https://71c099987684ea04b0b3ad25c0ce36a2@o4507117455015936.ingest.us.sentry.io/4507201261273088',

dataCollection,

// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1,

Expand Down
27 changes: 27 additions & 0 deletions apps/mikeallisonjs.com/sentry.data-collection.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import type { init } from '@sentry/nextjs'

// `@sentry/nextjs` does not re-export the `DataCollection` type from
// `@sentry/core`, which is not a direct dependency here.
type DataCollection = NonNullable<Parameters<typeof init>[0]['dataCollection']>

/**
* Sentry v11 replaced `sendDefaultPii` with `dataCollection`, and an unset
* `dataCollection` collects everything (cookies, user info, request and
* response bodies). This is the v10 default these apps ran with, per the
* v10 to v11 migration guide.
*/
const PII_HEADER_DENYLIST = ['forwarded', '-ip', 'remote-', 'via', '-user']

export const dataCollection: DataCollection = {
userInfo: false,
cookies: false,
httpHeaders: {
request: { deny: PII_HEADER_DENYLIST },
response: { deny: PII_HEADER_DENYLIST }
},
httpBodies: [],
urlQueryParams: { deny: PII_HEADER_DENYLIST },
genAI: { inputs: false, outputs: false },
databaseQueryData: false,
graphQL: { document: false, variables: false }
}
3 changes: 3 additions & 0 deletions apps/mikeallisonjs.com/src/instrumentation.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { init } from '@sentry/nextjs'

import { dataCollection } from '../sentry.data-collection'

const dsn =
'https://71c099987684ea04b0b3ad25c0ce36a2@o4507117455015936.ingest.us.sentry.io/4507201261273088'

const baseConfig = {
dsn,
dataCollection,
tracesSampleRate: 1,
debug: false,
enabled: process.env.NODE_ENV === 'production'
Expand Down
45 changes: 17 additions & 28 deletions apps/sltdnb.com/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { withSentryConfig } from '@sentry/nextjs'
import { withSentryConfig } from '@sentry/nextjs/config'

/** @type {import('next').NextConfig} */
const nextConfig = {
Expand Down Expand Up @@ -30,42 +30,31 @@ const nextConfig = {
}
}

export default withSentryConfig(
nextConfig,
{
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options
export default withSentryConfig(nextConfig, {
// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/build/
org: 'captain-fs',
project: 'sltdnb',

// Suppresses source map uploading logs during build
silent: true,
org: 'captain-fs',
project: 'sltdnb'
},
{
// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/

// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,

// Transpiles SDK to be compatible with IE11 (increases bundle size)
transpileClientSDK: true,
// Suppresses source map uploading logs during build
silent: true,

// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers. (increases server load)
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
// side errors will fail.
tunnelRoute: '/monitoring',
// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,

// Hides source maps from generated client bundles
hideSourceMaps: true,
// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers. (increases server load)
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
// side errors will fail.
tunnelRoute: '/monitoring',

webpack: {
// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
treeshake: { removeDebugLogging: true },

// Enables automatic instrumentation of Vercel Cron Monitors.
// See the following for more information:
// https://docs.sentry.io/product/crons/
// https://vercel.com/docs/cron-jobs
automaticVercelMonitors: true
}
)
})
4 changes: 4 additions & 0 deletions apps/sltdnb.com/sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@

import { init, replayIntegration } from '@sentry/nextjs'

import { dataCollection } from './sentry.data-collection'

init({
dsn: 'https://6419851e8c20157347014d51a7c6b208@o4507117455015936.ingest.us.sentry.io/4507117599391744',

dataCollection,

// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1,

Expand Down
27 changes: 27 additions & 0 deletions apps/sltdnb.com/sentry.data-collection.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import type { init } from '@sentry/nextjs'

// `@sentry/nextjs` does not re-export the `DataCollection` type from
// `@sentry/core`, which is not a direct dependency here.
type DataCollection = NonNullable<Parameters<typeof init>[0]['dataCollection']>

/**
* Sentry v11 replaced `sendDefaultPii` with `dataCollection`, and an unset
* `dataCollection` collects everything (cookies, user info, request and
* response bodies). This is the v10 default these apps ran with, per the
* v10 to v11 migration guide.
*/
const PII_HEADER_DENYLIST = ['forwarded', '-ip', 'remote-', 'via', '-user']

export const dataCollection: DataCollection = {
userInfo: false,
cookies: false,
httpHeaders: {
request: { deny: PII_HEADER_DENYLIST },
response: { deny: PII_HEADER_DENYLIST }
},
httpBodies: [],
urlQueryParams: { deny: PII_HEADER_DENYLIST },
genAI: { inputs: false, outputs: false },
databaseQueryData: false,
graphQL: { document: false, variables: false }
}
3 changes: 3 additions & 0 deletions apps/sltdnb.com/src/app/instrumentation.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { init } from '@sentry/nextjs'

import { dataCollection } from '../../sentry.data-collection'

const dsn =
'https://6419851e8c20157347014d51a7c6b208@o4507117455015936.ingest.us.sentry.io/4507117599391744'

const baseConfig = {
dsn,
dataCollection,
tracesSampleRate: 1,
debug: false,
enabled: process.env.NODE_ENV === 'production'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@mikeallisonjs/shared-react-components": "workspace:*",
"@mikeallisonjs/ui": "workspace:*",
"@sentry/nextjs": "^10.0.0",
"@sentry/nextjs": "^11.0.0",
"@sentry/utils": "^8.47.0",
"next": "16.4.0",
"react": "19.3.0",
Expand Down
Loading
Loading