MCPcopy Index your code
hub / github.com/callstack/agent-device / remoteConfigHasMetroSettings

Function remoteConfigHasMetroSettings

src/cli/commands/connection.ts:624–641  ·  view source on GitHub ↗
(remoteConfigPath: string)

Source from the content-addressed store, hash-verified

622}
623
624function remoteConfigHasMetroSettings(remoteConfigPath: string): boolean {
625 try {
626 const remoteConfig = resolveRemoteConfigProfile({
627 configPath: remoteConfigPath,
628 cwd: process.cwd(),
629 env: process.env,
630 });
631 const profile = remoteConfig.profile;
632 return Boolean(
633 profile.metroPublicBaseUrl ||
634 profile.metroProxyBaseUrl ||
635 profile.metroProjectRoot ||
636 profile.metroKind,
637 );
638 } catch {
639 return false;
640 }
641}
642
643function serializeConnectionState(
644 state: RemoteConnectionState,

Calls 1

Tested by

no test coverage detected