managarten/apps/chat
Wuesteon 44608074fc fix(chat-web): inject runtime env vars for client-side auth
Problem: Browser was calling localhost:3001 instead of staging server IP
because environment variables from Docker aren't available client-side.

Solution:
1. Add PUBLIC_*_CLIENT env vars to docker-compose.staging.yml for browser URLs
2. Inject these into window.__PUBLIC_*__ via hooks.server.ts transformPageChunk
3. Auth store reads from window variable for client-side requests

This pattern properly handles:
- SSR: Uses Docker internal URLs (http://mana-core-auth:3001)
- Client: Uses public URLs (http://46.224.108.214:3001)
- Local dev: Falls back to localhost

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 03:38:53 +01:00
..
apps fix(chat-web): inject runtime env vars for client-side auth 2025-12-05 03:38:53 +01:00
packages/chat-types fixes 2025-12-04 00:51:40 +01:00
CLAUDE.md fix(ci): build shared packages before tests and fix formatting 2025-12-01 23:15:00 +01:00
INTEGRATION_COMPLETE.md style: auto-format codebase with Prettier 2025-11-27 18:33:16 +01:00
MANA_CORE_AUTH_INTEGRATION.md style: auto-format codebase with Prettier 2025-11-27 18:33:16 +01:00
package.json improve code quality 2025-12-03 23:42:37 +01:00
TESTING_GUIDE.md style: auto-format codebase with Prettier 2025-11-27 18:33:16 +01:00