View CRE-MER_ngrok-host.php
<?php | |
/** | |
* This gist is used to redirect ngrok.io image url to a private server created to serve simply image files | |
* to access from remote | |
* Thanks to @moff's answer at https://stackoverflow.com/a/772551/9229256 | |
*/ | |
if (ENVIRONMENT !== 'development') return; |