Skip to content

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.humansTxt is undefined, the integration checks whether humans.txt exists 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.humansTxt to true (generate the tag) or false (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!

The reminder behavior is controlled by headTags.humansTxt.

optiontypedefaultdescription
headTags.humansTxtstring | URL | booleanundefinedundefined enables reminder checks. true generates the default tag. false suppresses reminder warnings.