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