I have followed below URL.


Setup is successfully installed and my local environment is connected to PWA application, but all of my images went missing while browsing PWA. as it is taking images url something like below


Any Configuration for changing this or any workaround.

  • Can you please share your virtual host file? – Ashish Viradiya Apr 16 '19 at 8:19
  • I haven't created any, I have just changed the .env file for the custom domain. – Rizwan Khan Apr 16 '19 at 9:45
  • 1
    Go to packages/venia-concept/.env and add pub MAGENTO_BACKEND_MEDIA_PATH_PRODUCT=" /pub/media/catalog/product" MAGENTO_BACKEND_MEDIA_PATH_CATEGORY=" /pub/media/catalog/category" – Ashish Viradiya Apr 16 '19 at 10:52
  • Thanks, it helps me, i have also added project name before /pub – Rizwan Khan Apr 16 '19 at 11:40

Go to packages/venia-concept/.env and add pub directory, if still not works you can add whole project URL.

  • I am just wondering that what it should be done when we move to production. – Rizwan Khan Apr 16 '19 at 11:54
  • in my setup it's working without change in env file. – Ashish Viradiya Apr 16 '19 at 11:55
  • what you have put there? – Rizwan Khan Apr 16 '19 at 12:16

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.