// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  ssr: false,  // SPA 모드 활성화
  nitro: {
    prerender: {
      routes: ['/'],  // 오직 루트 페이지만 prerender
      crawlLinks: false  // 자동 크롤링 비활성화
    }
  },
  app: {
    head: {
      titleTemplate: '',
      title: 'Audi',
      htmlAttrs: {
        lang: 'ko'
      },
      link: [
        //{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
      ],
      script: [
        {
          //src: 'https://openapi.map.naver.com/openapi/v3/maps.js?ncpClientId=5qsxjdotgi',
          //defer: true
        }
      ]
    },
  },  
  modules: ['@nuxt/ui'],
  ui: {
    colorMode: false
  },
  css: [
    '~/assets/scss/style.scss',
    '~/assets/scss/media.scss',
    '~/assets/scss/admin.scss',
    '~/assets/scss/responsive.scss',
  ],
  vite: {
    css: {
      preprocessorOptions: {
        scss: {
          additionalData: ''
        }
      }
    }
  },
  compatibilityDate: '2025-07-15',
  devtools: { enabled: false },
  devServer: {
    host: "0.0.0.0"
  },
  runtimeConfig: {
    public: {
      //apiBase: process.env.NUXT_PUBLIC_API_BASE
    }
  }
})