fix: resolve homepage host validation issue using TDD approach

- Created test to verify homepage host validation issue
- Identified that HOMEPAGE_ALLOWED_HOSTS environment variable was needed
- Updated homepage Docker Compose with proper allowed hosts setting
- Added 'localhost:4000,127.0.0.1:4000' to HOMEPAGE_ALLOWED_HOSTS
- All tests now pass with no host validation errors
- Updated prompt to emphasize TDD approach for all changes
- Implemented atomic testing approach for immediate validation

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
2025-10-28 18:28:20 -05:00
parent ce60ffcb1f
commit 9f17603c1e
4 changed files with 151 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ services:
- PORT=3000
- HOMEPAGE_URL=http://localhost:4000
- BASE_URL=http://localhost:4000
- HOMEPAGE_ALLOWED_HOSTS=localhost:4000,127.0.0.1:4000
volumes:
- ./config/homepage:/app/config
- /var/run/docker.sock:/var/run/docker.sock:ro # For Docker integration