Files
BigStickNewOfficialWebsite-V2/nuxt.config.js
T

42 lines
1.1 KiB
JavaScript
Raw Normal View History

2026-07-21 11:09:17 +08:00
const officialApiProxyTarget = (process.env.NUXT_OFFICIAL_API_PROXY_TARGET || 'http://localhost:8080').replace(/\/$/, '')
2026-07-14 17:44:51 +08:00
export default defineNuxtConfig({
2026-07-21 11:09:17 +08:00
runtimeConfig: {
officialApiProxyTarget,
public: {
officialApiBase: process.env.NUXT_PUBLIC_OFFICIAL_API_BASE || '/api'
}
},
2026-07-15 10:58:14 +08:00
future: {
compatibilityVersion: 3
},
2026-07-14 17:44:51 +08:00
modules: ['@nuxtjs/tailwindcss'],
2026-07-16 16:42:45 +08:00
css: ['~/assets/css/main.css', '~/assets/css/interior-polish.css'],
2026-07-15 09:58:35 +08:00
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/**']
}
}
},
2026-07-21 11:09:17 +08:00
nitro: {
devProxy: {
'/api': {
target: `${officialApiProxyTarget}/api`,
changeOrigin: true
}
}
},
2026-07-14 17:44:51 +08:00
app: {
head: {
title: '大马棒 · 云途全域 GEO',
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'description', content: '大马棒 · 云途全域 GEO 官方网站' }
]
}
}
})