Use .env variables in admin panel configuration "app.js" file

Hi everybody!

I would like to custom my admin panel configuration based on .env variables. In fact, I would like to display notifications about new Strapi release in development environment but not in production environment.

For example, I have my src/admin/app.js file which contains :

export default {
    config: {
        // Replace the Strapi logo in auth (login) views
        auth: { logo: AuthLogo },
        // Replace the favicon
        head: { favicon: favicon },
        // Replace the Strapi logo in the main navigation
        menu: { logo: MenuLogo },
        // TODO replace those variables by .env variables
        // Disable video tutorials
        tutorials: false,
        // Disable notifications about new Strapi releases
        notifications: { release: false },
    bootstrap(app) {

But I cannot use any method like env() or process.env.{variable} or anything else. I don’t know how to figure it out in Strapi v4.

Does anyone have an idea? Thanks!

System Information
  • Strapi Version: 4.06
  • Operating System: macOS Monterey
  • Database: MySQL
  • Node Version: 14.17.6
  • NPM Version:
  • Yarn Version: 1.22.17