Hi! I’ve installed Bedrock + Sage in a subdirectory and everything works (styles and scripts), except from some resources (images and fonts) that don’t load.
I have Bedrock installed in a subdirectory in my main domain, like this: domain.com/site. I noticed that the browser tries to load the resources from domain.com/app/themes/sage/dist, whereas the correct location is domain.com/site/app/themes/sage/dist.
What is WP_HOME is to in your .env for Bedrock? Also, check the wp_options table for home. It should be domain.com/site if you have Bedrock installed in the web root — which is not advisable because it potentially exposes .env.
Is it just images and fonts that are defined in the stylesheet that are not working? Or are <img>s not working either? What do the URLs in the stylesheets say? What is publicPath in {sage}/resources/assets/config.json set to?
Set the publicPath to the actual public path to the theme: /site/web/app/themes/sage — or if that’s what your public path is for your dev environment run the following when you build for production: