I am deploying everything correctly using php -d memory_limit=2G bin/magento setup:static-content:deploy -f
but Magento 2 is somehow still not picking up on the css styles from the theme, and also the images, so it looks without any style. This happens on both frontend and admin side. What is the issue here? I know everything else is fine, because when I copy static/ and media/ folders from static folder into the root folder, the css and images are there.