I'm experiencing a strange issue. On Prod/Preprod environment the application works fine but on dev environment (OSX) suddenly the application stopped working and we have no way to get it back on. We work on Magento 2.4.2-p1.
Inspecting the app, we see that the html file downloaded from the server doesn't include the theme.css. If we check the generated sources the file is there and if we set the same path as in prod, the file is loaded and look identical.
By some strange reason magento is not including the theme files (for both frontend and backend).
So far we tried to clean cache, copy the files from preprod to the local environment, reinstall nginx/php and set the permissions to the local user on the machine. Clear caches, reinstall vendor dependencies from composer, deploy static files,...
To bring more context: we're running nginx 1.21.0 and php-fpm 7.4.20.
Any ideas are welcome!