更新 next.config.mjs

This commit is contained in:
Hk-Gosuto 2024-08-28 00:15:30 +08:00
parent 2f7883dcda
commit a458a17076

View File

@ -6,14 +6,11 @@ console.log("[Next] build mode", mode);
const disableChunk = !!process.env.DISABLE_CHUNK || mode === "export"; const disableChunk = !!process.env.DISABLE_CHUNK || mode === "export";
console.log("[Next] build with chunk: ", !disableChunk); console.log("[Next] build with chunk: ", !disableChunk);
module.exports = {
env: {
LANGCHAIN_CALLBACKS_BACKGROUND: true,
},
};
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = { const nextConfig = {
env: {
LANGCHAIN_CALLBACKS_BACKGROUND: 'true',
},
webpack(config) { webpack(config) {
config.module.rules.push({ config.module.rules.push({
test: /\.svg$/, test: /\.svg$/,