feat: add configurable host binding for server and Vite dev server

- Add HOST environment variable (default: 0.0.0.0) to allow binding to specific network interfaces
- Update server to listen on configurable host instead of hardcoded localhost
- Update Vite dev server to respect HOST environment variable
- Enhanced server startup banner to display listening address
- Updated .env.example and CLAUDE.md documentation

Fixes #536

Co-authored-by: Web Dev Cody <webdevcody@users.noreply.github.com>
This commit is contained in:
claude[bot]
2026-01-17 01:34:06 +00:00
parent 03516ac09e
commit 09bb59d090
4 changed files with 17 additions and 7 deletions

View File

@@ -65,6 +65,7 @@ export default defineConfig(({ command }) => {
},
},
server: {
host: process.env.HOST || '0.0.0.0',
port: parseInt(process.env.TEST_PORT || '3007', 10),
},
build: {