Management (next): fix chunk load error
This commit is contained in:
parent
3872099471
commit
cd7366498a
@ -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,6 +157,12 @@ 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