My assets are hosted on a CDN in production. According to the Cake Book the App.cssBaseUrl and App.jsBaseUrl should be the URL and path to the CDN. When I set App.jsBaseUrl to https://example.com/js/ I get the following error when trying to execute $this->AssetMix->script('app');:
Unable to locate AssetMix file: /https://example.com/js/app.js.
Steps To Reproduce
Add the following lines to app_local.php. Combine the App array if one already exists.
Description
My assets are hosted on a CDN in production. According to the Cake Book the
App.cssBaseUrl
andApp.jsBaseUrl
should be the URL and path to the CDN. When I setApp.jsBaseUrl
tohttps://example.com/js/
I get the following error when trying to execute$this->AssetMix->script('app');
:Steps To Reproduce
App
array if one already exists.$this->AssetMix->js('app');
to a template file.Expected behavior
The CSS file should load from https://example.com/css/main.css and the javascript should load from https://example.com/js/app.js.
Tests
I wrote these tests in case they would be useful.