You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered: