// 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',
    ['@nuxtjs/google-fonts', {
      display: 'swap',
      families: {
        Rubik: '100..900',
        'Noto Sans SC': '100..900',
        'Barlow Condensed': '100..900'
      }
    }],
  ],
  ui: {
    icons: ['tabler', 'solar', 'line-md', 'svg-spinners'],
  },
  colorMode: {
    preference: 'dark',
  },
  dayjs: {
    locales: ['zh', 'en'],
    plugins: ['relativeTime', 'utc', 'timezone'],
    defaultLocale: 'zh',
    defaultTimezone: 'Asia/Shanghai',
  },
})