added support for CDN URL to be passed in env var