game-village-politics-frontend/nuxt.config.ts

47 lines
1.2 KiB
TypeScript
Raw Normal View History

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_<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',
PUSHER_APP_KEY: 'websocket',
// Until the backend exists, an in-browser fake answers the same WS intents (app/mock/).
MOCK_SERVER: true,
},
},
})