mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-04 19:37:18 +00:00
734 B
734 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 |
Files contained within the public/
directory are served at the root and are not modified by the build process. This is suitable for 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.
::