Files
petvity/next.config.ts
T
Mao NakamotoandClaude Opus 4.8 7ef1a3310f chore(observability): drop deprecated Sentry disableLogger build option
Deprecated in @sentry/nextjs 10.x and unsupported under Turbopack — removing
it silences the build-time deprecation warning. No behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-17 18:46:25 +02:00

22 lines
726 B
TypeScript

import type { NextConfig } from "next";
import createNextIntlPlugin from "next-intl/plugin";
import { withSentryConfig } from "@sentry/nextjs";
const withNextIntl = createNextIntlPlugin("./i18n/request.ts");
const nextConfig: NextConfig = {
output: "standalone",
serverExternalPackages: ["pg"],
};
// Sentry build options — safe without env: sourcemap upload only runs when
// SENTRY_AUTH_TOKEN is set, so builds never fail on a missing token.
export default withSentryConfig(withNextIntl(nextConfig), {
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
authToken: process.env.SENTRY_AUTH_TOKEN,
silent: true,
sourcemaps: { disable: !process.env.SENTRY_AUTH_TOKEN },
telemetry: false,
});