This plugin allows nginx to serve images missing from your local site from your production server.
For example, if your local site is serving a page with a reference to an image:
https://www.example.local/wp-content/uploads/2020/01/cat.jpg.
and that file is not in your local site's file system it will try to serve the image from the production server (www.example.com).
https://www.example.com/wp-content/uploads/2020/01/cat.jpg
Clone the repository into the following directory depending on your platform:
- macOS:
~/Library/Application Support/Local by Flywheel/addons
yarn install
yarn build
- Restart Local
- Navigate to Add-ons -> Installed and enable Proxy Images
- Choose on of your sites in Local
- Navigate to Utilities
- Enter the URL of your production server
- Toggle the switch to ON.
- Restart your site.
All files in /src
will be transpiled to /lib
using Babel. Anything in /lib
will be overwritten.
MIT