Strapi does not recognise production config

System Information
  • Strapi Version: 4.0.0
  • Operating System: ubuntu focal
  • Database: postgres
  • Node Version: 14.17.3
  • NPM Version: 6.14.15
  • Yarn Version: 1.22.17

I have been having problems getting strapi to recognise the files inside /config/env/ directories. Even when NODE_ENV variable is set to production the correct files are not being loaded.
I feel like I am missing something very basic but can’t seem to understand what it is. Any help is very appreciated!