sync() — astro Function Reference
Architecture documentation for the sync() function in content-layer.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD fa13ca14_45c4_dd38_e5f1_14d76ddb3944["sync()"] 4a6efe25_e6e4_25af_3955_aede0d8f5983["ContentLayer"] fa13ca14_45c4_dd38_e5f1_14d76ddb3944 -->|defined in| 4a6efe25_e6e4_25af_3955_aede0d8f5983 963f8134_57bf_4ccb_ae76_1a8cd242c521["watchContentConfig()"] 963f8134_57bf_4ccb_ae76_1a8cd242c521 -->|calls| fa13ca14_45c4_dd38_e5f1_14d76ddb3944 style fa13ca14_45c4_dd38_e5f1_14d76ddb3944 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/content/content-layer.ts lines 170–172
sync(options: RefreshContentOptions = {}): Promise<void> {
return this.#queue.add(() => this.#doSync(options));
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does sync() do?
sync() is a function in the astro codebase, defined in packages/astro/src/content/content-layer.ts.
Where is sync() defined?
sync() is defined in packages/astro/src/content/content-layer.ts at line 170.
What calls sync()?
sync() is called by 1 function(s): watchContentConfig.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free