CSS and JS assets not loaded at all on production (basset issue) #855
-
After deploying my site to a fresh Laravel Forge server the JS and CSS files are not being loaded, they are not even being shown in the actually rendered HTML. Locally everything works fine. I've tried a few things already like running I have done some debugging and when I Any help is much appreciated. I'm happy to share more details if needed. PHP VERSION:PHP 8.3.3-1+ubuntu22.04.1+deb.sury.org+1 (cli) (built: Feb 15 2024 18:38:52) (NTS) LARAVEL VERSION:10.45.1.0 BACKPACK PACKAGE VERSIONS:backpack/basset: 1.2.4 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Hey @floristenhove I saw your question on Stackoverflow. Did you check the FAQ section? I tested on a fresh install & worked for me. I still highly doubt on can you share your current value of |
Beta Was this translation helpful? Give feedback.
-
Other details that might be important are that this project is an upgrade from older versions of laravel (5.6) and backpack (3.4). The APP_ENV is set to |
Beta Was this translation helpful? Give feedback.
-
Hey @floristenhove thanks for the report, and sorry for the trouble. 🙏 Since it's an upgrade, what I suspect is that you may have files overwritten in your Another thing, what's APP_ENV I will need some more errors /screenshots/error stacks to help you, so if you can't share the current project I would advise you to setup a Cheers |
Beta Was this translation helpful? Give feedback.
-
I've (kinda) resolved it by using a different hostname. My APP_URL was https://api-uat.domain.com, but I've now changed it to https://api.uat.domain.com and everything works. Could the dash be the problem? It's hard to imagine but I'm happy it's working now. Thank you again for your help, it's much appreciated. |
Beta Was this translation helpful? Give feedback.
I've (kinda) resolved it by using a different hostname. My APP_URL was https://api-uat.domain.com, but I've now changed it to https://api.uat.domain.com and everything works. Could the dash be the problem? It's hard to imagine but I'm happy it's working now. Thank you again for your help, it's much appreciated.