// https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ future: { compatibilityVersion: 4, }, compatibilityDate: '2025-07-15', devtools: { enabled: true }, // Configure server nitro: { experimental: { websocket: true }, // Enable WebSocket support devProxy: { '/ws': { target: 'ws://localhost:3000', ws: true, changeOrigin: true } } }, // Environment variables runtimeConfig: { public: { gameName: 'SnatchGame', wsUrl: process.env.NUXT_PUBLIC_WS_URL || 'ws://localhost:2567' } }, // TypeScript configuration typescript: { strict: true, shim: false, tsConfig: { compilerOptions: { experimentalDecorators: true, emitDecoratorMetadata: true } } }, // Disable SSR for game application ssr: false, // Vite configuration for WebSocket support vite: { server: { proxy: { '/ws': { target: 'ws://localhost:3000', ws: true, changeOrigin: true } } } } })