RC
RC
  • Get Started
  • Guide
  • API
  • Examples
  • Community
    • useAppConfig
    • useAsyncData
    • useCookie
    • useError
    • useFetch
    • useHead
    • useHydration
    • useLazyAsyncData
    • useLazyFetch
    • useNuxtApp
    • useRequestEvent
    • useRequestHeaders
    • useRoute
    • useRouter
    • useRuntimeConfig
    • useState
    • <NuxtPage>
    • <NuxtLayout>
    • <NuxtLink>
    • <NuxtLoadingIndicator>
    • <NuxtErrorBoundary>
    • <NuxtWelcome>
    • <Teleport>
    • $fetch
    • abortNavigation
    • addRouteMiddleware
    • clearError
    • clearNuxtData
    • createError
    • defineNuxtComponent
    • defineNuxtRouteMiddleware
    • definePageMeta
    • navigateTo
    • prefetchComponents
    • preloadComponents
    • refreshNuxtData
    • setPageLayout
    • setResponseStatus
    • showError
    • updateAppConfig
    • Lifecycle Hooks
    • Kit Utilities
    • nuxi add
    • nuxi analyze
    • nuxi build
    • nuxi cleanup
    • nuxi dev
    • nuxi generate
    • nuxi info
    • nuxi init
    • nuxi prepare
    • nuxi preview
    • nuxi typecheck
    • nuxi upgrade
    • Nuxt Config

nuxi generate

npx nuxi generate [rootDir]

The generate command pre-renders every route of your application and stores the result in plain HTML files that you can deploy on any static hosting services. The command triggers the nuxi build command with the prerender argument set to true

OptionDefaultDescription
rootDir.The root directory of the application to generate

Commands

nuxi dev

Commands

nuxi info