xref: /expo/packages/@expo/cli/src/api/settings.ts (revision 453643fe)
1// This file represents temporary globals for the CLI when using the API.
2// Settings should be as minimal as possible since they are globals.
3import chalk from 'chalk';
4
5import { Log } from '../log';
6import { env } from '../utils/env';
7
8export function disableNetwork() {
9  if (env.EXPO_OFFLINE) return;
10  process.env.EXPO_OFFLINE = '1';
11  Log.log(chalk.gray('Networking has been disabled'));
12}
13