humans.txt
The humans.txt integration feature is a special case compared to the other integration features. This one only runs reminder checks when headTags.humansTxt is not set. It does not generate the file — you are responsible for placing humans.txt in public/ so Astro copies it to the build output.
- If
headTags.humansTxtisundefined, the integration checks whetherhumans.txtexists in the build output. - If the file is missing, it warns you to add a humans.txt file.
- If the file exists, it recommends setting
headTags.humansTxttotrue(generate the tag) orfalse(suppress the warning).
This approach encourages authors to create a humans.txt file while giving them control over how the integration handles it. By default, it promotes best practices without enforcing them, allowing for flexibility based on individual project needs. I recommend adding a humans.txt to your site to provide authorship and site information in a standardized way, at least credit yourself or your team as the creator of the site!
Options
Section titled “Options”The reminder behavior is controlled by headTags.humansTxt.
| option | type | default | description |
|---|---|---|---|
headTags.humansTxt | string | URL | boolean | undefined | undefined enables reminder checks. true generates the default tag. false suppresses reminder warnings. |