mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-28 16:40:20 +09:00
更新 next.config.mjs
This commit is contained in:
parent
a458a17076
commit
7391275fb3
@ -8,9 +8,6 @@ console.log("[Next] build with chunk: ", !disableChunk);
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
env: {
|
||||
LANGCHAIN_CALLBACKS_BACKGROUND: 'true',
|
||||
},
|
||||
webpack(config) {
|
||||
config.module.rules.push({
|
||||
test: /\.svg$/,
|
||||
@ -26,7 +23,13 @@ const nextConfig = {
|
||||
config.resolve.fallback = {
|
||||
child_process: false,
|
||||
};
|
||||
|
||||
|
||||
config.plugins.push(
|
||||
new webpack.DefinePlugin({
|
||||
'process.env.NEXT_PUBLIC_LANGCHAIN_CALLBACKS_BACKGROUND': true
|
||||
})
|
||||
);
|
||||
|
||||
return config;
|
||||
},
|
||||
output: mode,
|
||||
|
Loading…
Reference in New Issue
Block a user