// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2025-07-15',
  devtools: { enabled: true },

  modules: [
    '@nuxt/image',
    '@nuxt/ui',
    '@nuxt/eslint'
  ],

  css: [
    '~/assets/css/variables.css',
    '~/assets/css/fonts.css',
    '~/assets/css/typography.css',
    '~/assets/css/travel-typography.css',
    '~/assets/css/components.css',
    '~/assets/css/travel.css',
    '~/assets/css/main.css'
  ],

  // Опционально: для оптимизации шрифтов
  app: {
    head: {
      link: [
        {
          rel: 'preconnect',
          href: 'https://fonts.googleapis.com'
        },
        {
          rel: 'preconnect',
          href: 'https://fonts.gstatic.com',
          crossorigin: ''
        },
        {
          rel: 'stylesheet',
          href: 'https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&display=swap'
        }
      ]
    }
  },

  // Настройки для работы за прокси
  runtimeConfig: {
    public: {
      baseURL: process.env.BASE_URL || 'http://localhost:3000'
    }
  },

  nitro: {
    preset: 'node-server'
  },

  // Дополнительно в Vite
  vite: {
    css: {
      devSourcemap: false
    }
  },


})