29 lines
726 B
TypeScript
29 lines
726 B
TypeScript
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
export default defineNuxtConfig({
|
|
devtools: {enabled: true},
|
|
runtimeConfig: {
|
|
public: {
|
|
API_BASE: 'https://service1.fenshenzhike.com/'
|
|
}
|
|
},
|
|
modules: [
|
|
'@nuxt/ui',
|
|
'radix-vue/nuxt',
|
|
'dayjs-nuxt',
|
|
"@pinia/nuxt",
|
|
"@pinia-plugin-persistedstate/nuxt",
|
|
"@vite-pwa/nuxt",
|
|
],
|
|
ui: {
|
|
icons: ['tabler', 'solar', 'line-md', 'svg-spinners']
|
|
},
|
|
colorMode: {
|
|
preference: 'dark'
|
|
},
|
|
dayjs: {
|
|
locales: ['zh', 'en'],
|
|
plugins: ['relativeTime', 'utc', 'timezone'],
|
|
defaultLocale: 'zh',
|
|
defaultTimezone: 'Asia/Shanghai',
|
|
}
|
|
}) |