From 64c843c2c46dc11f6822d34e20c4522d7f295566 Mon Sep 17 00:00:00 2001 From: Marcin Ciarka Date: Fri, 25 Oct 2024 11:38:45 +0200 Subject: [PATCH] we needed that after all... --- apps/earn-protocol-landing-page/next.config.mjs | 5 +++++ apps/earn-protocol/next.config.mjs | 5 +++++ 2 files changed, 10 insertions(+) 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';