mirror of
https://github.com/multipleof4/KalBot.git
synced 2026-03-16 21:41:02 +00:00
Refactor: Remove webpack hacks for captcha
This commit is contained in:
@@ -1,13 +1,6 @@
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
output: 'standalone',
|
output: 'standalone'
|
||||||
webpack: (config, { isServer }) => {
|
|
||||||
// Force Webpack to leave svg-captcha completely alone on the server
|
|
||||||
if (isServer) {
|
|
||||||
config.externals.push('svg-captcha');
|
|
||||||
}
|
|
||||||
return config;
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
|
|||||||
Reference in New Issue
Block a user