Member Junction
    Preparing search index...
    • Load sync configuration from a directory

      Loads .mj-sync.json file from the specified directory. This file can contain either global sync configuration (no entity field) or entity-specific configuration (with entity field).

      Parameters

      • dir: string

        Directory path to load configuration from

      Returns Promise<SyncConfig>

      Promise resolving to SyncConfig if found and valid, null otherwise

      const syncConfig = await loadSyncConfig('/path/to/project');
      if (syncConfig?.push?.requireConfirmation) {
      // Show confirmation prompt
      }