Vite assets / npm run build - loads new theme once, then only loads vendor theme

Posted this on GH discussions a few days ago, no responses there so I figured I'd try my luck here for some more visibility.

This issue feels super weird and I'm not sure how to investigate it further or if I should file an actual issue report.

I've followed the appearance customisation instructions. On my local it works fine. On my production instance, on a fresh asset build, Filament will correctly use the built asset filament.css for the theme once, but subsequent loads just uses the vendor Filament CSS.

Viewing page source shows this link change. I've even added logging in the service provider to log Filament::getThemeLink() and on each page load (even when it's defaulting to the vendor one in the page source) and it's always the built asset.

I'm using Octane if that matters at all?
Was this page helpful?