-
I'm having trouble getting Laravel Nova to use the ASSET_URL environment variable for generating asset URLs. I've set ASSET_URL to point to my S3 bucket and uploaded the contents of my public folder, along with the vendor/nova folder, to S3.
However, when I load my application, the asset URLs still use the APP_URL environment variable instead of ASSET_URL. I've tried updating my config/filesystems.php file to include a new s3 disk with the url option set to ASSET_URL, and setting the asset_disk option in my config/nova.php file to s3, but the issue persists.
I've also cleared my application cache and checked the asset URLs in my browser's developer console, but no luck. Could someone help me troubleshoot this issue and ensure that Laravel Nova is using my ASSET_URL environment variable for asset URLs? Any help would be greatly appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Laravel Nova uses |
Beta Was this translation helpful? Give feedback.
Laravel Nova uses
mix()
helper under the hood and would rely on the following:https://github.com/laravel/nova-dusk-suite/blob/97ce3ed41ca84cfcd5caa60255b8d73b4d74f698/config/app.php#L61