
* feat: ✨ add empty packages/ui * feat: ⚗️ move taxes app-grid to packages/ui * build: ⬆️ upgrade macaw-ui in packages/ui * add app sdk * feat: ✨ add basic breadcrumbs component * refactor: ♻️ simplify breadcrumbs api * Update packages/ui/src/breadcrumbs.tsx Co-authored-by: Lukasz Ostrowski <lukasz.ostrowski@saleor.io> * refactor: 🔥 next-env.d.ts * refactor: ♻️ address breadcrumbs feedback * chore: 🔥 remove eslint disable * build: 👷 add changeset --------- Co-authored-by: Lukasz Ostrowski <lukasz.ostrowski@saleor.io>
31 lines
864 B
JavaScript
31 lines
864 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}
|
|
*/
|
|
const config = {
|
|
reactStrictMode: true,
|
|
experimental: {
|
|
esmExternals: true,
|
|
},
|
|
transpilePackages: ["@saleor/apps-shared", "@saleor/apps-ui"],
|
|
};
|
|
|
|
module.exports = withSentryConfig(
|
|
config,
|
|
{ silent: true },
|
|
{
|
|
hideSourcemaps: true,
|
|
disableServerWebpackPlugin: !isSentryPropertiesInEnvironment,
|
|
disableClientWebpackPlugin: !isSentryPropertiesInEnvironment,
|
|
}
|
|
);
|