Update next.config.ts

This commit is contained in:
2025-07-24 15:02:07 +00:00
parent 035f204445
commit 550df0bc51

View File

@@ -1,6 +1,5 @@
import { withSentryConfig } from "@sentry/nextjs";
import { NextConfig } from "next";
import { PHASE_PRODUCTION_BUILD } from "next/constants";
import type { NextConfig } from "next";
const nextConfig = (phase: string): NextConfig => ({
output: phase === PHASE_PRODUCTION_BUILD ? "export" : undefined,
@@ -76,14 +75,4 @@ const nextConfig = (phase: string): NextConfig => ({
],
});
export default withSentryConfig(nextConfig, {
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
org: process.env.SENTRY_ORG,
project: "javascript-nextjs",
widenClientFileUpload: true,
reactComponentAnnotation: {
enabled: true,
},
hideSourceMaps: true,
disableLogger: true,
});
export default nextConfig;