add is prod check to Sentry
All checks were successful
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m46s

This commit is contained in:
Lee 2024-10-28 22:14:00 +00:00
parent 18aaba86be
commit e9c03a662e

@ -2,6 +2,7 @@ import { withSentryConfig } from "@sentry/nextjs";
import { format } from "@formkit/tempo"; import { format } from "@formkit/tempo";
import nextBundleAnalyzer from "@next/bundle-analyzer"; import nextBundleAnalyzer from "@next/bundle-analyzer";
import type { NextConfig } from "next"; import type { NextConfig } from "next";
import { isProduction } from "@/common/website-utils";
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
experimental: { experimental: {
@ -41,14 +42,18 @@ const withBundleAnalyzer = nextBundleAnalyzer({
enabled: process.env.ANALYZE === "true", enabled: process.env.ANALYZE === "true",
}); });
export default withSentryConfig(withBundleAnalyzer(nextConfig), { const config = withBundleAnalyzer(nextConfig);
org: "fascinatedcc",
project: "scoresaber-reloaded", export default isProduction()
silent: !process.env.CI, ? withSentryConfig(config, {
widenClientFileUpload: true, org: "fascinatedcc",
reactComponentAnnotation: { project: "scoresaber-reloaded",
enabled: true, silent: !process.env.CI,
}, widenClientFileUpload: true,
hideSourceMaps: true, reactComponentAnnotation: {
disableLogger: true, enabled: true,
}); },
hideSourceMaps: true,
disableLogger: true,
})
: config;