From a46a2f76d91cec67c7a1ab2272402c46ef4708e0 Mon Sep 17 00:00:00 2001 From: shinya Date: Wed, 2 Jul 2025 13:23:59 +0800 Subject: [PATCH] feat: add fallback --- next.config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/next.config.js b/next.config.js index 7925073..7fed7f1 100644 --- a/next.config.js +++ b/next.config.js @@ -52,6 +52,13 @@ const nextConfig = { // Modify the file loader rule to ignore *.svg, since we have it handled now. fileLoaderRule.exclude = /\.svg$/i; + config.resolve.fallback = { + ...config.resolve.fallback, + net: false, + tls: false, + crypto: false, + }; + return config; }, };