4

I had done a PWA setup on my local machine.

I am facing product and category images issue. enter image description here

Images path :

src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAFCAQAAADIpIVQAAAADklEQVR42mNkgAJGIhgAALQABsHyMOcAAAAASUVORK5CYII="

src="/img/resize/300?url=%2Fmedia%2Fcatalog%2Fproduct%2Fv%2Fs%2Fvsk12-la_main_3.jpg"
  • I have the same issue but only occurs when I start the PWA dev server with the yarn/npm watch command, I can see the images when I use the stage command. I think it's an issue with the SSL certificate. – Holly Mar 25 '19 at 7:08
1

Open this file

/var/www/html/magento231/pwa-studio/packages/venia-concept/.env

Remove comment and replace path like

# MAGENTO_BACKEND_MEDIA_PATH_PRODUCT="/media/catalog/product"
# MAGENTO_BACKEND_MEDIA_PATH_CATEGORY="/media/catalog/category"

To

MAGENTO_BACKEND_MEDIA_PATH_PRODUCT="/pub/media/catalog/product"
MAGENTO_BACKEND_MEDIA_PATH_CATEGORY="/pub/media/catalog/category"
0

Try this issue by copying the contents of vendor/magento/sample-data-media-venia/catalog to pub/media/catalog. Hope this helps.

Reference : https://github.com/magento-research/pwa-studio/issues/413

  • I already tried this, but it does not work for me. – Vivek Sharma Feb 22 '19 at 9:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.