fix: nextjs config sentry

This commit is contained in:
sriram veeraghanta 2024-04-02 16:45:18 +05:30
parent bd470f7a90
commit 204e4a8c6d
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ const nextConfig = {
output: "standalone", output: "standalone",
}; };
if (parseInt(process.env.NEXT_PUBLIC_ENABLE_SENTRY || "0"), 10) { if (parseInt(process.env.NEXT_PUBLIC_ENABLE_SENTRY || "0", 10)) {
module.exports = withSentryConfig(nextConfig, module.exports = withSentryConfig(nextConfig,
{ silent: true, authToken: process.env.SENTRY_AUTH_TOKEN }, { silent: true, authToken: process.env.SENTRY_AUTH_TOKEN },
{ hideSourceMaps: true } { hideSourceMaps: true }

View File

@ -25,7 +25,7 @@ const nextConfig = {
output: "standalone", output: "standalone",
}; };
if (parseInt(process.env.NEXT_PUBLIC_ENABLE_SENTRY || "0"), 10) { if (parseInt(process.env.NEXT_PUBLIC_ENABLE_SENTRY || "0", 10)) {
module.exports = withSentryConfig(nextConfig, module.exports = withSentryConfig(nextConfig,
{ silent: true, authToken: process.env.SENTRY_AUTH_TOKEN }, { silent: true, authToken: process.env.SENTRY_AUTH_TOKEN },
{ hideSourceMaps: true } { hideSourceMaps: true }