NuxtN
Nuxt9mo ago
17 replies
Ken

How to deploy a static nuxt app

export default defineNuxtConfig({
  compatibilityDate: '2024-11-01',
  devtools: { enabled: true },

  app: {
    baseURL: '/site/',
  },


  nitro: {
    static: true,
    output: {
      publicDir: '../dist'
    }
  },

  modules: ['@nuxt/ui', '@nuxt/icon'],


  ssr: true,
})


I am having issues trying to deploy a static nuxt app so that my fastapi backend serves it at /site and redirects any rendered page to /site/**
Was this page helpful?