Update next.config.ts
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user