Step 1
How to fix product image URLs for PWA Studio in Windows?
Step 2
Run in cmd
as an administrator:
takeown /f <path to the Magento's backend> /r /d y
icacls <path to the Magento's backend> /grant:r <user>:F /t
E.g.:
takeown /f C:\work\clients\pwa\studio\2021-01-14\backend\code /r /d y
icacls C:\work\clients\pwa\studio\2021-01-14\backend\code /grant:r dmitry:F /t
- docs.microsoft.com/en-us/windows-server/administration/windows-commands/takeown
- docs.microsoft.com/en-us/windows-server/administration/windows-commands/icacls
Step 3
Locate the following line in the .env
file of the root folder:
IMAGE_OPTIMIZING_ORIGIN=auto
Replace it with:
IMAGE_OPTIMIZING_ORIGIN=backend