How to reset the app.config.ts cache

I have the following app.config.js:

import { ExpoConfig, ConfigContext } from '@expo/config';

export default ({ config }: ConfigContext): ExpoConfig => {
  const appName = process.env.ENV === 'dev' ? 'Development' : 'Production';

  return { 
      ...config,
      name: appName,
  }
};

In this structure when I change the process.env.ENV property, the app.config.ts doesn’t take the changes and return the old version, while when I access it into the app - it’s the updated value.

I tried with expo r -c, but it resets the cache about the .env file… the app.config.ts is still not updated. How can I reset it?