Merge branch 'feature/sentry' into staging
This commit is contained in:
commit
2df6413d0f
@ -1,5 +1,6 @@
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
|
|
||||||
|
console.log(process.env);
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
reactStrictMode: false,
|
reactStrictMode: false,
|
||||||
publicRuntimeConfig: {
|
publicRuntimeConfig: {
|
||||||
@ -56,45 +57,44 @@ const nextConfig = {
|
|||||||
|
|
||||||
module.exports = nextConfig;
|
module.exports = nextConfig;
|
||||||
|
|
||||||
|
|
||||||
// Injected content via Sentry wizard below
|
// Injected content via Sentry wizard below
|
||||||
|
|
||||||
const { withSentryConfig } = require("@sentry/nextjs");
|
const { withSentryConfig } = require("@sentry/nextjs");
|
||||||
|
|
||||||
module.exports = withSentryConfig(
|
module.exports = withSentryConfig(
|
||||||
module.exports,
|
module.exports,
|
||||||
{
|
{
|
||||||
// For all available options, see:
|
// For all available options, see:
|
||||||
// https://github.com/getsentry/sentry-webpack-plugin#options
|
// https://github.com/getsentry/sentry-webpack-plugin#options
|
||||||
|
|
||||||
// Suppresses source map uploading logs during build
|
// Suppresses source map uploading logs during build
|
||||||
silent: true,
|
silent: true,
|
||||||
org: "smart-chain-nh",
|
org: "smart-chain-nh",
|
||||||
project: "lecoffre",
|
project: "lecoffre",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// For all available options, see:
|
// For all available options, see:
|
||||||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
|
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
|
||||||
|
|
||||||
// Upload a larger set of source maps for prettier stack traces (increases build time)
|
// Upload a larger set of source maps for prettier stack traces (increases build time)
|
||||||
widenClientFileUpload: true,
|
widenClientFileUpload: true,
|
||||||
|
|
||||||
// Transpiles SDK to be compatible with IE11 (increases bundle size)
|
// Transpiles SDK to be compatible with IE11 (increases bundle size)
|
||||||
transpileClientSDK: true,
|
transpileClientSDK: true,
|
||||||
|
|
||||||
// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)
|
// Routes browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers (increases server load)
|
||||||
tunnelRoute: "/monitoring",
|
tunnelRoute: "/monitoring",
|
||||||
|
|
||||||
// Hides source maps from generated client bundles
|
// Hides source maps from generated client bundles
|
||||||
hideSourceMaps: true,
|
hideSourceMaps: true,
|
||||||
|
|
||||||
// Automatically tree-shake Sentry logger statements to reduce bundle size
|
// Automatically tree-shake Sentry logger statements to reduce bundle size
|
||||||
disableLogger: true,
|
disableLogger: true,
|
||||||
|
|
||||||
// Enables automatic instrumentation of Vercel Cron Monitors.
|
// Enables automatic instrumentation of Vercel Cron Monitors.
|
||||||
// See the following for more information:
|
// See the following for more information:
|
||||||
// https://docs.sentry.io/product/crons/
|
// https://docs.sentry.io/product/crons/
|
||||||
// https://vercel.com/docs/cron-jobs
|
// https://vercel.com/docs/cron-jobs
|
||||||
automaticVercelMonitors: true,
|
automaticVercelMonitors: true,
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user