Odd styling difference dev vs prod
Hi on DEV I have this (nicely-formatted "menu" from cliking the user initials). On PROD this appears full-width.
As the PROD environment is built from DEV and updated via a "git pull origin master" command, I am at a loss to understand what might cause this - any suggestions?
thanks optimistically,
j


5 Replies
Hmm, could be:
1) You need to run
npm run build
2) You need to remove published viewsThanks - "remove published views" - can you clarify?
I performed step 1 but didn't seem to make a difference.
yeah then it was a published view issue. Things usually change in the UI and break, but if you pucblish the views, then filament will use the published views and NOT the newest views from github.
It is generally not reccomended to publish filament views because things can break sometimes
So only do it if you know what you are doing
Solution
Did you run
php artisan filament:upgrade
after deployment?No I hadn't - but have now / cleared browser cache and now the problem is gone 🙂
Thx for the info!