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'.
EXPO_PUBLIC_DATASET_TYPE
NODE_ENV
'production'
'performance'
'test'
The resolved DatasetType for the current environment.
// EXPO_PUBLIC_DATASET_TYPE=production → 'production'// NODE_ENV=production → 'production'// NODE_ENV=test → 'test'const type = getDatasetType(); Copy
// EXPO_PUBLIC_DATASET_TYPE=production → 'production'// NODE_ENV=production → 'production'// NODE_ENV=test → 'test'const type = getDatasetType();
Determines the active dataset type from environment variables.
EXPO_PUBLIC_DATASET_TYPEtakes precedence overNODE_ENV. When neither variable resolves to'production'or'performance', returns'test'.