mirror of
https://github.com/bitbaum/petvity.git
synced 2026-12-04 06:18:09 +01:00
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>
22 lines
726 B
TypeScript
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,
|
|
});
|