Custom page messing up sidebar
I made a custom page where I built a custom Livewire component. I also added the app.css file as I needed the tailwind-classes.
It all works fine locally but when I deployed, it messed up the layout. The navigation overlaps my component. First screenshot is how it should be, second is the one on the server.
Am I missing something? Publishing assets, config, ... ?
The weird part is that all the functionality works as it should, it's just the css that doesnt work as expected.
12 Replies
npm run build on prod
Fair enough, that works but it's in my deploy script as well (the
deploy:build
task):
Did it resolve it?
I am not familiar with your tasker
Might need to restart FPM depending on your setup too.
Yes it worked but I'm not sure why I should build it afterwards on the server if I'm building it first with my deploy script. I will look into it. Thanks though!
No problem
FYI: this is the deploy package I'm using: https://deployer.org/
Deployer - The deployment tool for PHP | Deployer
Deployer is a tool for deploying PHP applications to a remote server.
Interesting, I just use Ploi
Not sure why you are injecting
@vite()
above the page instead of using a theme?
How is your deploy:build
defined?It was the easiest fix I could find. Would this be better?
https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
It sounds a bit hacky to me π
Hm. Weird.
It is though but it was not quite clear to me how I could solve it otherwise