From a71be673f61640085bbdb879b8bc96e1b34e5f3d Mon Sep 17 00:00:00 2001 From: Vincent Alamelle Date: Tue, 6 Jun 2023 11:28:04 +0200 Subject: [PATCH] Remove dynamic import --- next.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/next.config.js b/next.config.js index 91addf51..6a80175b 100644 --- a/next.config.js +++ b/next.config.js @@ -13,6 +13,16 @@ const nextConfig = { NEXT_PUBLIC_IDNOT_AUTHORIZE_ENDPOINT: process.env.NEXT_PUBLIC_IDNOT_AUTHORIZE_ENDPOINT, NEXT_PUBLIC_IDNOT_CLIENT_ID: process.env.NEXT_PUBLIC_IDNOT_CLIENT_ID, }, + webpack: config => { + config.node = { + fs: 'empty', + child_process: 'empty', + net: 'empty', + dns: 'empty', + tls: 'empty', + }; + return config; + }, }; module.exports = nextConfig;