diff --git a/apps/earn-protocol-landing-page/next.config.mjs b/apps/earn-protocol-landing-page/next.config.mjs index ed96710fd..a6dd4384d 100644 --- a/apps/earn-protocol-landing-page/next.config.mjs +++ b/apps/earn-protocol-landing-page/next.config.mjs @@ -6,6 +6,11 @@ const withNextIntl = createNextIntlPlugin() const nextConfig = { output: 'standalone', reactStrictMode: false, + webpack: (config) => { + config.externals.push('pino-pretty', 'encoding') + + return config + }, sassOptions: { prependData: ` @import './node_modules/include-media/dist/_include-media.scss'; diff --git a/apps/earn-protocol/next.config.mjs b/apps/earn-protocol/next.config.mjs index ed96710fd..a6dd4384d 100644 --- a/apps/earn-protocol/next.config.mjs +++ b/apps/earn-protocol/next.config.mjs @@ -6,6 +6,11 @@ const withNextIntl = createNextIntlPlugin() const nextConfig = { output: 'standalone', reactStrictMode: false, + webpack: (config) => { + config.externals.push('pino-pretty', 'encoding') + + return config + }, sassOptions: { prependData: ` @import './node_modules/include-media/dist/_include-media.scss';