Files
frontend/apps/as/next.config.ts
T
changwng 797b2c3b63 Merge branch 'refs/heads/iipbs/as/dev' into feature/0612_sentry_fr_merge
# Conflicts:
#	apps/cs/app/api/proxy/[...url]/route.ts
#	pnpm-lock.yaml
2026-07-27 10:02:12 +09:00

32 lines
890 B
TypeScript

import type { NextConfig } from "next";
import { withSentryConfig } from "@sentry/nextjs";
import path from "path";
const nextConfig: NextConfig = {
output: "standalone",
reactStrictMode: true,
transpilePackages: ["@common/assets"],
outputFileTracingRoot: path.join(__dirname, "../../"),
};
const isSentryEnabled =
process.env.NEXT_PUBLIC_SENTRY_ENABLED === "true" &&
process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT !== "dev" &&
process.env.NEXT_PUBLIC_SENTRY_ENVIRONMENT !== "prd";
export default withSentryConfig(nextConfig, {
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
silent: true,
widenClientFileUpload: true,
tunnelRoute: "/monitoring",
disable: !isSentryEnabled,
webpack: {
treeshake: {
removeDebugLogging: process.env.NEXT_PUBLIC_SENTRY_DEBUG === "true" ? false : true,
},
automaticVercelMonitors: false,
},
});