Why does Astro Build ID exist?
To provide a simple, reliable way to identify which build is currently deployed, especially on static sites behind CDNs.
Clear answers explaining how Astro Build ID identifies deployed builds safely and deterministically.
Last Updated: 01 April 2026
To provide a simple, reliable way to identify which build is currently deployed, especially on static sites behind CDNs.
ISO timestamps (default), Unix timestamps, and a short deterministic identifier.
Yes. You can configure a custom filename, such as health.txt or version.txt.
Yes. If a value is provided explicitly, it is written verbatim and overrides any format.
Yes. The output is static and can be cached indefinitely by CDNs.
A warning is logged, the build continues, and the site is not broken.
No. It never runs at runtime and introduces zero overhead.
Yes. Astro Build ID is released under the MIT license.
Need a deterministic way to identify deployed builds?