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 { 
      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?

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.