Unable to access Strapi env variables in custom /src/admin/app.js

System Information
  • Strapi Version: 4.25.13
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

I’ve tried everything in app.js to access environment variables in order to customize the languages in the admin screen via .env with no luck. I tried changing to app.ts and going the ({env}) route and nothing works. Any suggestions?