strapi/docs/3.0.0-beta.x/concepts/public-assets.md
Bart Duisters b12c965efc Grammar and punctuation of public-assets.md
Signed-off-by: Bart Duisters <bartduisters@bartduisters.com>
2020-02-08 19:58:12 +01:00

20 lines
999 B
Markdown

# Public Assets
Public assets are static files such as images, video, css, etc. that you want to make accessible to the outside world. Every new project includes, by default, a folder named `./public`.
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.
::: tip
`index.html` files are served if the request corresponds to a folder name (`/pictures` url will try to serve `public/pictures/index.html` file).
:::
::: warning
The dotfiles are not exposed. It means that every file where the names start with a `.`, such as `.htaccess` or `.gitignore`, are not served.
:::
Refer to the [public assets configurations](./configurations.md#Application) for more information.