mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-05-22 14:37:30 +08:00
feat: add fallback
This commit is contained in:
@@ -52,6 +52,13 @@ const nextConfig = {
|
|||||||
// Modify the file loader rule to ignore *.svg, since we have it handled now.
|
// Modify the file loader rule to ignore *.svg, since we have it handled now.
|
||||||
fileLoaderRule.exclude = /\.svg$/i;
|
fileLoaderRule.exclude = /\.svg$/i;
|
||||||
|
|
||||||
|
config.resolve.fallback = {
|
||||||
|
...config.resolve.fallback,
|
||||||
|
net: false,
|
||||||
|
tls: false,
|
||||||
|
crypto: false,
|
||||||
|
};
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user