Nuxt 3 is coming.. Discover more about it here!

Docs Examples Resources Blog Video courses
  • English
  • Français
  • Get Started
    • Installation
    • Routing
    • Directory Structure
    • Commands and Deployment
    • Conclusion
    • Upgrading
  • Concepts
  • Features
  • Directory Structure
  • Configuration Glossary
    • 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
  • Internals Glossary
  • Components Glossary
  • Deployment
Version: v2.15.7
  • English
  • Français
  • Get Started
    • Installation
    • Routing
    • Directory Structure
    • Commands and Deployment
    • Conclusion
    • Upgrading
  • Concepts
  • Features
  • Directory Structure
  • Configuration Glossary
    • 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
  • Internals Glossary
  • Components Glossary
  • Deployment
Version: v2.15.7

The buildDir property

Define the dist directory for your Nuxt.js 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.

Edit this page on GitHub Updated at Mon, Jul 12, 2021

Configuration Glossary The build Property
Configuration Glossary The cli Property

Partners

  • Netlify
  • Google Chrome
  • Vercel
  • Strapi
  • Swell
  • Ship Shape
  • Layer0
  • Storyblok
Support Us
A landscape image A landscape image

Discover

  • Our team
  • Design Kit
  • Contact us

Help

  • Resources
  • Chat with us
  • Contribution guide

Support

  • Sustainability
  • Training

Settings

Subscribe to our newsletter

The latest news, articles, and resources, sent to your inbox monthly.

NuxtJS is an open source framework under MIT license.