0

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?

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.