
* Install apps-shared, render null if app is loading in the iframe Redesign the app Add notification toasts and imrpve instructions Change channels list to select Replace lists with select * fix build * Fix build
20 lines
799 B
JavaScript
20 lines
799 B
JavaScript
// This file sets a custom webpack configuration to use your Next.js app
|
|
// with Sentry.
|
|
// https://nextjs.org/docs/api-reference/next.config.js/introduction
|
|
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
|
|
const { withSentryConfig } = require("@sentry/nextjs");
|
|
|
|
const isSentryPropertiesInEnvironment =
|
|
process.env.SENTRY_AUTH_TOKEN && process.env.SENTRY_PROJECT && process.env.SENTRY_ORG;
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
module.exports = {
|
|
reactStrictMode: true,
|
|
sentry: {
|
|
disableServerWebpackPlugin: !isSentryPropertiesInEnvironment,
|
|
disableClientWebpackPlugin: !isSentryPropertiesInEnvironment,
|
|
},
|
|
transpilePackages: ["@saleor/apps-shared"],
|
|
};
|
|
|
|
module.exports = withSentryConfig(module.exports, { silent: true }, { hideSourcemaps: true });
|