diff --git a/packages/doceditor/next.config.js b/packages/doceditor/next.config.js index 6bcc62aa91..ef13e5d568 100644 --- a/packages/doceditor/next.config.js +++ b/packages/doceditor/next.config.js @@ -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, }; -