im having problems with my css when uploading it to my domain. #1405
Replies: 1 comment
-
|
I'm sorry you're having trouble with your CSS not loading on your online domain. Based on the knowledge sources, here are the most common causes and solutions for this issue with Backpack:
If you use a different subdomain, port, or protocol (http vs https), assets may not load properly. Even small differences (like a dash in the domain) have caused issues for others. Try to match it exactly to your browser's address bar, including https if you use SSL. There are reports that even a dash in the domain can cause issues, so try to use a standard subdomain if possible and see if that helps CSS and JS assets not loaded at all on production (basset issue).
This creates the necessary symlink for assets to be served from the storage directory. Missing this step is a common cause of assets not loading CSS not loaded when pushed on production.
Or, to combine both: This ensures Basset caches and serves your assets correctly for production Pushing to production and no css loads - Basset.
public function boot(): void
{
\URL::forceScheme('https');
}This is especially important if assets load over http on an https site, which browsers may block Bug: CSS not loaded when pushed on production.
If you've tried all of the above and the problem persists, please provide:
This will help further diagnose the issue. Let me know if you need more specific guidance! ℹ️ Please note our AI Bot does not reply to follow-ups, this will be the only AI answer in this thread. If the AI helped you find the answer, please mark it as answered or write details below so it can learn. Then close the conversation. If not, please give more information for when a human reads this. ℹ️ Relevant sources: Github Issue (closed): [Bug] theme fonts links are absolute |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have problems where my css doesnt load on my online domain. i really could use some help here, i tried everything said in other discussions.
my domain:

local

app url is right in my env so thats not the problem
Beta Was this translation helpful? Give feedback.
All reactions