How to deploy a static nuxt app
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/**
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,
})