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$/,