diff --git a/gatsby-config.ts b/gatsby-config.ts index 87d859fa71..7fd6975186 100644 --- a/gatsby-config.ts +++ b/gatsby-config.ts @@ -164,8 +164,7 @@ export default { { resolve: "@sentry/gatsby", options: { - dsn: process.env.SENTRY_DSN, - tracesSampleRate: 1, + deleteSourcemapsAfterUpload: true, }, }, "gatsby-plugin-image", diff --git a/internal/definitions/matchers.d.ts b/internal/definitions/matchers.d.ts index e9e43eec23..19049ecc64 100644 --- a/internal/definitions/matchers.d.ts +++ b/internal/definitions/matchers.d.ts @@ -2,6 +2,6 @@ import { Matchers, AsymmetricMatchers } from "bun:test"; import { TestingLibraryMatchers } from "@testing-library/jest-dom/matchers"; declare module "bun:test" { - interface Matchers extends TestingLibraryMatchers {} - interface AsymmetricMatchers extends TestingLibraryMatchers {} + interface Matchers extends TestingLibraryMatchers { }; + interface AsymmetricMatchers extends TestingLibraryMatchers { }; } diff --git a/internal/gatsby/on-create-webpack-config.ts b/internal/gatsby/on-create-webpack-config.ts index f3bce0b3c8..194ba4cdfc 100644 --- a/internal/gatsby/on-create-webpack-config.ts +++ b/internal/gatsby/on-create-webpack-config.ts @@ -1,7 +1,7 @@ import path from "path"; -import { type CreateWebpackConfigArgs } from "gatsby"; import { type CompilerOptions } from "typescript"; +import { type CreateWebpackConfigArgs } from "gatsby"; import { compilerOptions } from "../../tsconfig.json"; diff --git a/sentry.config.ts b/sentry.config.ts new file mode 100644 index 0000000000..db36ff0034 --- /dev/null +++ b/sentry.config.ts @@ -0,0 +1,12 @@ +import * as Sentry from "@sentry/gatsby"; + +Sentry.init({ + dsn: process.env.GATSBY_SENTRY_DSN, + integrations: [ + Sentry.browserTracingIntegration(), + Sentry.replayIntegration(), + ], + tracesSampleRate: 1.0, + replaysSessionSampleRate: 0.1, + replaysOnErrorSampleRate: 1.0, +}); diff --git a/tsconfig.json b/tsconfig.json index 36f12e8d93..8fe940058a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -27,7 +27,7 @@ "verbatimModuleSyntax": true, "noFallthroughCasesInSwitch": true, "allowSyntheticDefaultImports": true, - "forceConsistentCasingInFileNames": true, + "forceConsistentCasingInFileNames": true }, "exclude": ["node_modules"], "include": ["**/*.ts", "**/*.tsx"]