update next.config.mjs
This commit is contained in:
parent
81f8556f8a
commit
76ef70dff4
|
@ -8,6 +8,9 @@ console.log("[Next] build with chunk: ", !disableChunk);
|
||||||
|
|
||||||
/** @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$/,
|
||||||
|
@ -20,12 +23,6 @@ const nextConfig = {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
config.plugins.push(
|
|
||||||
new webpack.DefinePlugin({
|
|
||||||
'process.env.LANGCHAIN_CALLBACKS_BACKGROUND': JSON.stringify('true'),
|
|
||||||
})
|
|
||||||
);
|
|
||||||
|
|
||||||
config.resolve.fallback = {
|
config.resolve.fallback = {
|
||||||
child_process: false,
|
child_process: false,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue