👨‍🏫 The Mastering Nuxt 3 course is now completed!

Discover the course
Go to homepageNuxt logoNuxt logo
  • Docs
  • Modules
  • Showcase
  • Support
  • Blog
  • Follow Nuxt on Twitter
  • Join Nuxt community on Discord
  • Go to Nuxt Github repo
Nuxt logo

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
    • modules
    • node_modules
    • pages
    • plugins
    • public
    • server
    • utils
    • .env
    • .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
    • Authoring Nuxt Layers
    • Custom routing
    • 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
Nuxt logo
© 2016-2023 Nuxt - MIT License
  • Support
  • Design Kit
  • NuxtLabs
  • Nuxt Studio
  • Follow Nuxt on Twitter
  • Join Nuxt community on Discord
  • Go to Nuxt Github repo