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

Image from API #74

Closed
stepanushariara opened this issue May 9, 2019 · 1 comment
Closed

Image from API #74

stepanushariara opened this issue May 9, 2019 · 1 comment

Comments

@stepanushariara
Copy link

Hi Guys,

I have follow the documentation and working well if my image within my Next.js
But it cannot working when the image come from api (other source).
How to make it working with image url ?

Thanks guys

@cyrilwanner
Copy link
Owner

Hi @stepanushariara
This is not possible, unfortunately. Since this is only a webpack loader, it can only handle local files (you can also not import remote js files with webpack).

If you are in charge of the API, you can optimize the images in the API (e.g. on upload). If you are using a 3rd party API and they haven't optimized their images, you could also use an image optimization proxy in front of their images.

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