diff --git a/next.config.js b/next.config.js index 6b39cfeb1..fea27338b 100644 --- a/next.config.js +++ b/next.config.js @@ -24,7 +24,7 @@ const nextConfig = { GITHUB_TOKEN: process.env.GITHUB_TOKEN, }), assetPrefix: isProd ? 'https://core.ac.uk' : '', - dynamicAssetPrefix: true, + dynamicAssetPrefix: !!isProd, webpack: (config) => { const originalEntry = config.entry config.entry = async () => {