Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can we force all images to be inlined/downloaded ? #154

Closed
sandys opened this issue May 3, 2020 · 1 comment
Closed

can we force all images to be inlined/downloaded ? #154

sandys opened this issue May 3, 2020 · 1 comment

Comments

@sandys
Copy link

sandys commented May 3, 2020

hi,
we are looking to fix an issue in nextjs 9.3+

we are using getStaticProps to generate the static pages. We are using Prismic as the CMS. However, even when we are using static export, it doesnt download the images...it just points to the Prismic url.

We would like to have nextjs download all the images and export them .

next-optimized-images seems to be the best bet here.

@cyrilwanner
Copy link
Owner

Hi @sandys
Unfortunately, this is currently not possible because the image optimization is based on webpack loaders and the static site generation/export happens after it has already been processed by webpack.
However, this feature is already planned for the next major version, but it is not ready yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants