What does the Astro Legal plugin do?
Astro Legal generates complete, production-ready legal policy pages for Astro sites at build time using a single configuration file.
Astro & Compliance
Clear, production-focused answers explaining how Astro Legal generates legal policies, enforces layouts, and guarantees deterministic, user-owned output.
Astro Legal generates complete, production-ready legal policy pages for Astro sites at build time using a single configuration file.
Astro Legal supports privacy policies, terms of service, acceptable use policies, compliance disclosures, security policies, and other common legal and trust documents.
All configuration is defined in a single legal.config.json file, which controls enabled policies, output paths, organisation metadata, contact details, and the required layout.
Yes. Policies are enabled individually in the configuration file. Disabled policies are never generated.
Legal pages must integrate seamlessly with a site’s design and metadata. Astro Legal enforces a required layout to guarantee consistent rendering and ownership.
The layout path is validated at configuration load time. Invalid or missing layouts prevent policy generation by design.
No. Astro Legal will never overwrite existing files. Policies are only generated if the target file does not already exist.
You do. Once generated, all policy files are fully user-owned and can be edited or replaced freely.
No. Astro Legal runs exclusively at build time and adds no runtime code or client-side scripts.
No. Astro Legal performs no analytics, tracking, telemetry, or outbound network requests.
Yes. Given the same configuration and project structure, Astro Legal always produces the same output.
Yes. Astro Legal is designed to run safely in CI/CD environments with no side effects or non-deterministic behaviour.
No. Astro Legal provides structured templates and tooling but does not replace professional legal advice or guarantee compliance.
Yes. Astro Legal is fully open source and released under the MIT license.
Want to try it yourself? Astro Legal plugin or Velohost privacy policy or Velohost terms of service
Ready to generate legal policies for your Astro site?