fix: Configure Vite for nginx reverse proxy
Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled

- Add --host flag to bind to all interfaces
- Add __VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS env var for external domain
- Configure allowedHosts in vite.config.ts
- Remove duplicate vite.config.js (was overriding .ts config)
- Enable IPv4 binding for nginx proxy compatibility

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
DSS
2025-12-10 23:07:36 -03:00
parent 280b5ee7a8
commit 5844a277bb
3 changed files with 3 additions and 61 deletions

View File

@@ -5,7 +5,7 @@
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"dev": "__VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS=dss.overbits.luz.uy vite --host",
"build": "tsc && vite build",
"preview": "vite preview",
"test": "vitest",