mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 18:13:54 +00:00
15 lines
538 B
Markdown
15 lines
538 B
Markdown
---
|
|
navigation.icon: IconDirectory
|
|
title: "public"
|
|
description: "The public/ directory is used to serve your website's static assets."
|
|
head.title: "public/"
|
|
---
|
|
|
|
# Public Directory
|
|
|
|
The [`public/` directory](/docs/guide/directory-structure/public) is directly served at the server root and contains public files that have to keep their names (e.g. `robots.txt`) _or_ likely won't change (e.g. `favicon.ico`).
|
|
|
|
::alert{icon=💡}
|
|
This is known as the [`static/` directory](https://nuxtjs.org/docs/directory-structure/static) in Nuxt 2.
|
|
::
|