• Docs
  • Modules
  • Showcase
  • Support

Docs

  • Get Started
  • Guide
  • API
  • Examples
  • Community
  • Key Concepts
    • Auto imports
    • Vue.js Development
    • Rendering Modes
    • Server Engine
    • Modules
    • ES Modules
    • TypeScript
  • Directory Structure
    • .nuxt
    • .output
    • assets
    • components
    • composables
    • content
    • layouts
    • middleware
    • node_modules
    • pages
    • plugins
    • public
    • server
    • utils
    • .gitignore
    • .nuxtignore
    • app.config.ts
    • app.vue
    • nuxt.config.ts
    • package.json
    • tsconfig.json
  • Going further
    • How Nuxt Works?
    • Lifecycle Hooks
    • Module Author Guide
    • Nuxt Kit
    • NuxtApp
    • Runtime Config
    • Edge Channel

Public Directory

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

This is known as the static/ directory in Nuxt 2.

Edit on Github
© 2022 Nuxt - MIT License
  • Support
  • Design Kit
  • NuxtLabs
  • Nuxt Studio