MCPcopy Create free account
hub / github.com/contentlayerdev/contentlayer / syncLoop

Function syncLoop

examples/next-rsc-dynamic/contentlayer.config.ts:78–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 let syncInterval
77
78 const syncLoop = async () => {
79 await syncRun()
80
81 if (wasCancelled) return
82
83 syncInterval = setTimeout(syncLoop, 1000 * 60) // sync every minute
84 }
85
86 // Block until the first sync is done
87 await syncLoop()

Callers 1

syncContentFromGitFunction · 0.70

Calls 1

syncRunFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…