Astro Integration
Astro Build Timestamp
Expose the exact time your Astro site was built using a single static file — nothing more, nothing less.
Usage snapshot
Why this plugin exists
Knowing when a site was last built is a common operational need, especially for diagnostics, caching, and deployment verification.
Astro Build Timestamp solves this by writing a single static timestamp file during astro build.
The output is deterministic per build, public-safe, and works behind any CDN without runtime logic or metadata coupling.
What it delivers
Design principles
- Build-time only — no runtime logic or scripts
- Single responsibility, minimal surface area
- Static, cache-safe output
- No environment or CI metadata coupling
- Never blocks a deployment
What this plugin does
- Writes a single static build timestamp file
- Supports ISO, Unix, and short timestamp formats
- Allows custom output filenames
- Works with any Astro adapter or CDN
- Produces deterministic output per build
Installation
npm install astro-build-timestamp
The plugin runs automatically during astro build and writes a static timestamp file to the final output directory.
Project links
Source code, releases, documentation, and contribution guidelines.
Want the deep dive?
Read the FAQs for implementation details, design rationale, and integration guidance.
View plugin FAQs