From 2f7883dcdad7359f3b0a2cc307e5af7818b68e32 Mon Sep 17 00:00:00 2001 From: Hk-Gosuto Date: Wed, 28 Aug 2024 00:09:33 +0800 Subject: [PATCH] update next.config.mjs --- next.config.mjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 54a31c669..32872cae9 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -6,11 +6,14 @@ console.log("[Next] build mode", mode); const disableChunk = !!process.env.DISABLE_CHUNK || mode === "export"; console.log("[Next] build with chunk: ", !disableChunk); -/** @type {import('next').NextConfig} */ -const nextConfig = { +module.exports = { env: { LANGCHAIN_CALLBACKS_BACKGROUND: true, }, +}; + +/** @type {import('next').NextConfig} */ +const nextConfig = { webpack(config) { config.module.rules.push({ test: /\.svg$/,