saleor-apps-redis_apl/apps/data-importer/next.config.js

29 lines
736 B
JavaScript
Raw Permalink Normal View History

2023-03-01 14:24:16 +00:00
const { withSentryConfig } = require("@sentry/nextjs");
const isSentryPropertiesInEnvironment =
process.env.SENTRY_AUTH_TOKEN && process.env.SENTRY_PROJECT && process.env.SENTRY_ORG;
/** @type {import('next').NextConfig} */
const nextConfig = {
2023-02-07 18:11:39 +00:00
reactStrictMode: true,
transpilePackages: ["@saleor/apps-shared", "nuvo-react"],
2023-02-07 19:09:51 +00:00
};
2023-03-01 14:24:16 +00:00
const configWithSentry = withSentryConfig(
nextConfig,
{
silent: true,
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
},
{
widenClientFileUpload: true,
transpileClientSDK: true,
tunnelRoute: "/monitoring",
hideSourceMaps: true,
disableLogger: true,
}
);
module.exports = isSentryPropertiesInEnvironment ? configWithSentry : nextConfig;