Skip to content

sync

Terminal window
nx run my-app:sync

The short form nx sync is a command of Nx itself, so this target needs nx run.

Runs astro sync, which writes types for content collections and modules to .astro/. The target is not cached, because .astro/ also holds data that Astro manages on its own.

Option Type Default Description
root string none Project directory. Nx knows it, so you rarely set this.
config string none Path of the Astro config file. Without it Astro finds astro.config.* itself.
verbose boolean false Verbose output.
additionalArgs array none More command-line arguments for Astro.
nx-astro 3.2.0 · MIT Developed by