Preparing search index...

    Function getDatasetType

    • Determines the active dataset type from environment variables.

      EXPO_PUBLIC_DATASET_TYPE takes precedence over NODE_ENV. When neither variable resolves to 'production' or 'performance', returns 'test'.

      Returns DatasetType

      The resolved DatasetType for the current environment.

      // EXPO_PUBLIC_DATASET_TYPE=production → 'production'
      // NODE_ENV=production → 'production'
      // NODE_ENV=test → 'test'
      const type = getDatasetType();