Skip to content

Commit

Permalink
Merge pull request #319 from TimoWilhelm/master
Browse files Browse the repository at this point in the history
fix double // for precache in static/media
  • Loading branch information
shadowwalker authored Feb 25, 2022
2 parents 55a8081 + 4a49bc7 commit 009a60d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 009a60d

Please sign in to comment.