forked from urvishpatelce/lxd-app
update logic and refactor code
This commit is contained in:
@ -1,13 +1,23 @@
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
app: {
|
||||
baseURL: '/app/' // This replaces router.base from Nuxt 2
|
||||
},
|
||||
ssr: true,
|
||||
compatibilityDate: '2025-05-15',
|
||||
devtools: { enabled: true },
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
siteUrl: process.env.SITE_URL,
|
||||
backendUrl: process.env.BACKEND_URL,
|
||||
apiVersion: process.env.API_VERSION,
|
||||
apiUrl: `${process.env.BACKEND_URL}/${process.env.API_VERSION}`
|
||||
apiUrl: `${process.env.BACKEND_URL}/api`
|
||||
}
|
||||
},
|
||||
nitro: {
|
||||
prerender: {
|
||||
crawlLinks: true,
|
||||
routes: ['/', '/login'], // Add known routes
|
||||
ignore: ['/*.php'], // Or leave empty to catch with [...slug].vue
|
||||
}
|
||||
},
|
||||
css: [
|
||||
|
||||
Reference in New Issue
Block a user