Reputation: 4353
NextJS serves static assets from the public
directory.
However, I've got a Webpack loader (responsive-loader
) that generates images as a part of the build pipeline, and the images land in the .next
directory. How do I serve these images?
Upvotes: 0
Views: 197
Reputation: 35503
You can specify the outputPath
as the path to the public
folder, this will tell Webpack to save the assets in public
folder instead of .next
Upvotes: 1