• Docs
  • Modules
  • Showcase
  • Nuxters
  • Resources
  • Updates
61K
  • Get Started
  • Structure
  • Guide
  • API
Nuxt 2 reached end of life on 30 June 2024
It no longer receives bug fixes or security patches. Upgrade to Nuxt 4 or get extended support from HeroDevs
    • alias
    • build
    • buildDir
    • cli
    • css
    • components
    • dev
    • dir
    • env
    • extendPlugins
    • generate
    • globalName
    • head
    • hooks
    • ignore
    • loading
    • loading indicator
    • mode
    • modern
    • modules
    • modulesDir
    • plugins
    • render
    • rootDir
    • router
    • RuntimeConfig
    • server
    • serverMiddleware
    • srcDir
    • ssr
    • target
    • telemetry
    • transition
    • vue.config
    • watch
    • watchers
    • The context
    • $nuxt: The Nuxt helper
    • Nuxt Modules
    • Nuxt Class
    • Renderer
    • Module Container
    • Builder
    • Generator
    • Using Nuxt Programmatically
    • render
    • renderRoute
    • renderAndGetWindow
    • Fetch Hook
    • Head Method
    • Key Property
    • Layout Property
    • Loading Property
    • Middleware Property
    • Transition Property
    • scrollToTop Property
    • Validate Method
    • WatchQuery Property
  1. API
  2. Configuration
  3. buildDir

The buildDir Property

Define the dist directory for your Nuxt application
  • Type: String
  • Default: .nuxt
nuxt.config.js
export default {
  buildDir: 'nuxt-dist'
}

By default, many tools assume that .nuxt is a hidden directory, because its name starts with a dot. You can use this option to prevent that.

Was this helpful?

Report an issue or Edit this page on GitHub

build

Nuxt lets you customize the webpack configuration for building your web application as you want.

cli

Nuxt lets you customize the CLI configuration.

Community

  • Become a Sponsor
  • Master Nuxt
  • Nuxt Certification
Nuxt on DiscordNuxt on BlueskyNuxt on XNuxt on GitHub

Community

  • Nuxters
  • Team
  • Design Kit

Explore

  • Templates
  • Showcase
  • AI Evals

Enterprise

  • Agencies
  • Sponsors

Stay updated on new releases and features, guides, and community updates.

Nuxt on XNuxt on BlueSkyNuxt on LinkedInNuxt on DiscordNuxt on GitHub

Copyright © 2016-2026 Nuxt - MIT License