mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 03:26:38 +08:00
Compare commits
2 Commits
1a606b6fcc
...
0ba05b5cb3
Author | SHA1 | Date | |
---|---|---|---|
|
0ba05b5cb3 | ||
|
d5c86ce9ab |
@ -21,9 +21,25 @@ const nextConfig = {
|
||||
}
|
||||
|
||||
config.resolve.fallback = {
|
||||
...config.resolve.fallback,
|
||||
child_process: false,
|
||||
process: false,
|
||||
path: false,
|
||||
fs: false,
|
||||
os: false,
|
||||
util: false,
|
||||
stream: false,
|
||||
buffer: require.resolve('buffer/'),
|
||||
events: require.resolve('events/'),
|
||||
};
|
||||
|
||||
config.plugins.push(
|
||||
new webpack.ProvidePlugin({
|
||||
Buffer: ['buffer', 'Buffer'],
|
||||
process: 'process/browser',
|
||||
}),
|
||||
);
|
||||
|
||||
return config;
|
||||
},
|
||||
output: mode,
|
||||
|
Loading…
Reference in New Issue
Block a user