From a458a1707692a5a814df14f4a01135b9a59e1b03 Mon Sep 17 00:00:00 2001 From: Hk-Gosuto Date: Wed, 28 Aug 2024 00:15:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20next.config.mjs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next.config.mjs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 32872cae9..2cc3c5937 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -6,14 +6,11 @@ console.log("[Next] build mode", mode); const disableChunk = !!process.env.DISABLE_CHUNK || mode === "export"; console.log("[Next] build with chunk: ", !disableChunk); -module.exports = { - env: { - LANGCHAIN_CALLBACKS_BACKGROUND: true, - }, -}; - /** @type {import('next').NextConfig} */ const nextConfig = { + env: { + LANGCHAIN_CALLBACKS_BACKGROUND: 'true', + }, webpack(config) { config.module.rules.push({ test: /\.svg$/,