Fixed Bug 69877 - ChunkLoadError: Loading chunk 636 failed when opening the Share window

This commit is contained in:
Timofey Boyko 2024-08-30 11:39:19 +03:00
parent 88e282f5cb
commit 6945694b2b

View File

@ -41,7 +41,7 @@ const nextConfig = {
},
generateBuildId: async () => {
// This could be anything, using the latest git hash
return `${pkg.name} - ${pkg.version} `;
return `${pkg.name}-${pkg.version}-${new Date().getTime()}`;
},
images: {
unoptimized: true,
@ -157,8 +157,13 @@ module.exports = {
// Modify the file loader rule to ignore *.svg, since we have it handled now.
fileLoaderRule.exclude = /\.svg$/i;
if (config?.output?.filename)
config.output.filename = config.output.filename?.replace(
"[chunkhash]",
`[contenthash]`,
);
return config;
},
...nextConfig,
};