Skip to content

Commit

Permalink
Imageloader: collect images serverside to include images from staticp…
Browse files Browse the repository at this point in the history
…aths
  • Loading branch information
Diederik committed Oct 19, 2022
1 parent 9ac231a commit 6573f42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/build/webpack/loaders/next-image-loader.js
Expand Up @@ -91,8 +91,8 @@ function nextImageLoader(content) {
})
)

if (!isServer) {
this.emitFile(interpolatedName, content, null)
if (isServer) {
this.emitFile(`../${interpolatedName}`, content, null)
}

return `export default ${stringifiedData};`
Expand Down

0 comments on commit 6573f42

Please sign in to comment.