init: 整合项目(dashboard + www + docs)
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
export default defineNuxtConfig({
|
||||
// SPA 模式渲染,预留 SSR/SSG 升级能力
|
||||
ssr: false,
|
||||
|
||||
modules: ['@unocss/nuxt', '@nuxtjs/i18n', '@pinia/nuxt', '@vueuse/nuxt'],
|
||||
|
||||
// 国际化:中文默认无前缀,英文 /en 前缀
|
||||
// v10 自动检测 i18n/locales/ 目录,无需 langDir / lazy
|
||||
i18n: {
|
||||
locales: [
|
||||
{ code: 'zh', language: 'zh-CN', name: '中文' },
|
||||
{ code: 'en', language: 'en-US', name: 'English' }
|
||||
],
|
||||
defaultLocale: 'zh',
|
||||
strategy: 'prefix_except_default',
|
||||
detectBrowserLanguage: {
|
||||
useCookie: true,
|
||||
cookieKey: 'i18n_redirected',
|
||||
redirectOn: 'root'
|
||||
}
|
||||
},
|
||||
|
||||
app: {
|
||||
head: {
|
||||
title: '乐笙 Luxsin',
|
||||
meta: [{ name: 'description', content: '乐笙(Luxsin)产品官网' }]
|
||||
}
|
||||
},
|
||||
|
||||
devServer: {
|
||||
port: 3100
|
||||
},
|
||||
|
||||
telemetry: false,
|
||||
|
||||
compatibilityDate: '2026-07-29'
|
||||
});
|
||||
Reference in New Issue
Block a user