strat-gameplay-webapp/frontend-sba/nuxt.config.ts
Cal Corum 5e0309de46 CLAUDE: Configure dev server to allow Nginx Proxy Manager access
Added devServer configuration to bind on all network interfaces,
enabling access through Nginx Proxy Manager for remote testing.

Changes:
- Set host to '0.0.0.0' (listen on all interfaces)
- Keep port at 3000

This allows the frontend to be accessed via:
- Local: http://localhost:3000
- Remote: http://gameplay-demo.manticorum.com (via NPM proxy)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 22:22:08 -06:00

38 lines
943 B
TypeScript

export default defineNuxtConfig({
srcDir: '.',
modules: ['@nuxtjs/tailwindcss', '@pinia/nuxt', '@nuxt/eslint'],
pages: true,
dir: {
pages: 'pages'
},
runtimeConfig: {
public: {
leagueId: 'sba',
leagueName: 'Stratomatic Baseball Association',
apiUrl: process.env.NUXT_PUBLIC_API_URL || 'http://localhost:8000',
wsUrl: process.env.NUXT_PUBLIC_WS_URL || 'http://localhost:8000',
discordClientId: process.env.NUXT_PUBLIC_DISCORD_CLIENT_ID || '',
discordRedirectUri: process.env.NUXT_PUBLIC_DISCORD_REDIRECT_URI || 'http://localhost:3000/auth/callback',
}
},
compatibilityDate: '2025-07-15',
devtools: { enabled: true },
// Allow access from Nginx Proxy Manager
devServer: {
host: '0.0.0.0', // Listen on all network interfaces
port: 3000
},
typescript: {
strict: true,
typeCheck: false // Disable in dev - use `npm run type-check` manually
}
})