update next.config.mjs

This commit is contained in:
Hk-Gosuto 2024-08-28 00:09:33 +08:00
parent 76ef70dff4
commit 2f7883dcda

View File

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