42 lines
1.1 KiB
JavaScript
42 lines
1.1 KiB
JavaScript
const officialApiProxyTarget = (process.env.NUXT_OFFICIAL_API_PROXY_TARGET || 'http://localhost:8080').replace(/\/$/, '')
|
|
|
|
export default defineNuxtConfig({
|
|
runtimeConfig: {
|
|
officialApiProxyTarget,
|
|
public: {
|
|
officialApiBase: process.env.NUXT_PUBLIC_OFFICIAL_API_BASE || '/api'
|
|
}
|
|
},
|
|
future: {
|
|
compatibilityVersion: 3
|
|
},
|
|
modules: ['@nuxtjs/tailwindcss'],
|
|
css: ['~/assets/css/main.css', '~/assets/css/interior-polish.css'],
|
|
vite: {
|
|
server: {
|
|
watch: {
|
|
// `.agents` contains local assistant skills. On Windows, chokidar can
|
|
// fail while resolving it and cause Nuxt's dev server to restart.
|
|
ignored: ['**/.agents/**']
|
|
}
|
|
}
|
|
},
|
|
nitro: {
|
|
devProxy: {
|
|
'/api': {
|
|
target: `${officialApiProxyTarget}/api`,
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
},
|
|
app: {
|
|
head: {
|
|
title: '大马棒 · 云途全域 GEO',
|
|
meta: [
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
{ name: 'description', content: '大马棒 · 云途全域 GEO 官方网站' }
|
|
]
|
|
}
|
|
}
|
|
})
|