2026-10-28 18:04:20 +00:00
|
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
|
|
2026-10-28 16:57:43 +00:00
|
|
|
// 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'],
|
|
|
|
|
|
2026-10-28 18:04:20 +00:00
|
|
|
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' }],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
2026-10-28 16:57:43 +00:00
|
|
|
i18n: {
|
|
|
|
|
defaultLocale: 'en',
|
|
|
|
|
strategy: 'no_prefix',
|
|
|
|
|
locales: [{ code: 'en', name: 'English' }],
|
|
|
|
|
vueI18n: 'i18n.config.ts',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Override per environment with NUXT_PUBLIC_<KEY>, 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',
|
2026-10-28 18:26:16 +00:00
|
|
|
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,
|
2026-10-28 16:57:43 +00:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
})
|