public is a directory that contains files that are not processed.
Basically, all files that references your pages except raster image and svg.
Example
A PDF located in public/static/book.pdf would be referenced in a page as :
Usage
It's use for files:
- referenced in HTML/Markdown directly (<link rel="icon" href="/favicon.ico">)
- whose paths must stay stable (e.g., referenced from a CMS, email template, or external service)
- you don't want to be transformed
For example:
- pdf,
- word document
- robots.txt,
- sitemap.xml,
- manifest.json and favicon.ico