import tailwindcss from '@tailwindcss/vite' // One static SPA build serves the web and the later Steam wrapper, so no SSR anywhere. export default defineNuxtConfig({ compatibilityDate: '2026-10-28', ssr: false, devtools: { enabled: false }, modules: ['@nuxtjs/i18n'], css: ['~/assets/css/main.css'], vite: { plugins: [tailwindcss()], }, app: { head: { htmlAttrs: { lang: 'en' }, meta: [ { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { name: 'theme-color', content: '#f6efe2' }, ], link: [{ rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' }], }, }, i18n: { defaultLocale: 'en', strategy: 'no_prefix', locales: [{ code: 'en', name: 'English' }], vueI18n: 'i18n.config.ts', }, // Override per environment with NUXT_PUBLIC_, e.g. NUXT_PUBLIC_MOCK_SERVER=false. runtimeConfig: { public: { SERVER_URL: 'https://server-village.localhost.at', WEBS_URL: 'ws-server-village.localhost.at', WS_PROTOCOL: 'wss', PUSHER_APP_KEY: 'village-politics', // true swaps the backend for the in-browser fake in app/mock/ (UI work without a backend). MOCK_SERVER: false, }, }, })