From 4a49bc7e623c4ba080094da2b121f6b1b2f701d7 Mon Sep 17 00:00:00 2001 From: Timo Wilhelm Date: Mon, 31 Jan 2022 13:26:29 +0100 Subject: [PATCH] fix double // for precache in static/media --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 8c76b234..57357348 100644 --- a/index.js +++ b/index.js @@ -222,6 +222,7 @@ module.exports = (nextConfig = {}) => ({ async (manifestEntries, compilation) => { const manifest = manifestEntries.map(m => { m.url = m.url.replace('/_next//static/image', '/_next/static/image') + m.url = m.url.replace('/_next//static/media', '/_next/static/media') m.url = m.url.replace(/\[/g, '%5B').replace(/\]/g, '%5D') m.revision = buildId return m