Dependencies + Next.js 15.2.0 (#193)

- Updated All dependencies
- Updated Next.js 15.2.0
- Updated Stripe API version
- Remove Sentry replayIntegration by default
- Added IMPROVEMENT.yml file
- Bump version to 2.5.1
This commit is contained in:
Giancarlo Buomprisco
2025-03-02 10:41:12 +07:00
committed by GitHub
parent 131b1061e6
commit d14d19f330
26 changed files with 906 additions and 819 deletions

View File

@@ -16,7 +16,7 @@
"./config/server": "./src/sentry.client.server.ts"
},
"dependencies": {
"@sentry/nextjs": "^9.1.0",
"@sentry/nextjs": "^9.3.0",
"import-in-the-middle": "1.13.0"
},
"devDependencies": {

View File

@@ -1,4 +1,4 @@
import * as Sentry from '@sentry/nextjs';
import { init } from '@sentry/nextjs';
type Parameters<T extends (args: never) => unknown> = T extends (
...args: infer P
@@ -12,12 +12,15 @@ type Parameters<T extends (args: never) => unknown> = T extends (
* @param props
*/
export function initializeSentryBrowserClient(
props: Parameters<typeof Sentry.init>[0] = {},
props: Parameters<typeof init>[0] = {},
) {
return Sentry.init({
return init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
// Replay may only be enabled for the client-side
integrations: [Sentry.replayIntegration()],
integrations: [
// add your desired integrations here
// https://docs.sentry.io/platforms/javascript/configuration/integrations/
],
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.