Nuxt/docs/2.guide/2.directory-structure/1.public.md
Sébastien Chopin f26a801775
docs: update to new website (#23743)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-10-18 12:59:43 +02:00

663 B

title description head.title navigation.icon
public The public/ directory is used to serve your website's static assets. public/ i-ph-folder-duotone

The public/ is 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).

-| public/
---| favicon.ico
---| og-image.png
---| robots.txt
<script setup>
useSeoMeta({
  ogImage: '/og-image.png'
})
</script>

::callout{to="https://v2.nuxt.com/docs/directory-structure/static" target="_blank"} This is known as the [static/] directory in Nuxt 2. ::