mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
906 B
906 B
Public Assets
See the public assets concepts for details.
Because an API may need to serve static assets, every new Strapi project includes by default, a folder named /public. Any file located in this directory is accessible if the request's path doesn't match any other defined route and if it matches a public file name.
Example
An image named company-logo.png in ./public/ is accessible through /company-logo.png URL.
Note:
index.htmlfiles are served if the request corresponds to a folder name (/picturesurl will try to servepublic/pictures/index.htmlfile).
Warning bis: The dotfiles are not exposed. It means that every files with the names start by
.such as.htaccessor.gitignoreare not served.
Refer to the public assets configurations for more informations.