
* WIP * Added script and making implementation more roboust * Added rollback on issues with the migration * Cleanup the code * Use allSettled instead of all * Do not check spelling in schema files. Schema is pulled from the API and is not controlled by our team * Update the pkg json * Fix typo on log message * Add dedupe to the ignored words. Its used by codegen * Add changesets
33 lines
821 B
JavaScript
33 lines
821 B
JavaScript
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 = {
|
|
reactStrictMode: true,
|
|
transpilePackages: [
|
|
"@saleor/apps-shared",
|
|
"@saleor/apps-ui",
|
|
"@saleor/webhook-utils",
|
|
"@saleor/react-hook-form-macaw",
|
|
],
|
|
};
|
|
|
|
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;
|