Fixed Bug 69877 - ChunkLoadError: Loading chunk 636 failed when opening the Share window
This commit is contained in:
parent
88e282f5cb
commit
6945694b2b
@ -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,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user