Ken
Ken
NNuxt
Created by Ken on 4/25/2025 in #❓・help
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,
})
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/**
18 replies