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
2 changes: 1 addition & 1 deletion .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Code Formatting

on:
pull_request:
# pull_request:
push:
branches: ['**']

Expand Down
33 changes: 19 additions & 14 deletions sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,32 @@ import * as Sentry from '@sentry/nextjs'
if (process.env.NODE_ENV !== 'development') {
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
tracesSampleRate: 1,
enabled: true,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
tracesSampleRate: 1,
debug: false,
replaysOnErrorSampleRate: 1.0,

// This sets the sample rate to be 10%. You may want this to be 100% while
// in development and sample at a lower rate in production
replaysSessionSampleRate: 0.1,
beforeSend(event) {
// Clean client-side events
if (event.request?.headers) {
delete event.request.headers['Authorization']
delete event.request.headers['api-key']
}
return event
},

// You can remove this option if you're not planning to use the Sentry Session Replay feature:
integrations: [
// Sentry.replayIntegration({
// // Additional Replay configuration goes in here, for example:
// maskAllText: true,
// blockAllMedia: true,
// }),
Sentry.browserTracingIntegration(),
Sentry.replayIntegration({
maskAllText: true,
blockAllMedia: true,
}),
Sentry.captureConsoleIntegration({
levels: ['error'],
levels: ['error', 'warn'],
}),
],

// Session replay settings
replaysOnErrorSampleRate: 1.0,
replaysSessionSampleRate: 0.1,
})
}
20 changes: 11 additions & 9 deletions sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,21 @@ if (process.env.NODE_ENV !== 'development') {
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
enabled: true,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,

beforeSend(event) {
if (event.request?.headers) {
delete event.request.headers['Authorization']
delete event.request.headers['api-key']
}
return event
},

integrations: [
// Sentry.replayIntegration({
// // Additional Replay configuration goes in here, for example:
// maskAllText: true,
// blockAllMedia: true,
// }),
Sentry.httpIntegration(),
Sentry.captureConsoleIntegration({
levels: ['error'],
levels: ['error', 'warn'],
}),
],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export async function POST(request: NextRequest) {
})

if (!response.ok) {
// log the error response & request body for debugging
console.error('Error creating external account', response)
try {
const data = await response.json()
if (data.code && data.code == 'duplicate_external_account') {
Expand Down
Loading