mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:41:09 +02:00
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> |
||
|---|---|---|
| .. | ||
| calendar | ||
| chat | ||
| contacts | ||
| maerchenzauber/apps | ||
| manacore | ||
| manadeck | ||
| memoro/apps/mobile | ||
| nutriphi/apps | ||
| picture | ||
| presi | ||
| quote/apps | ||
| reader/apps/mobile | ||
| storage | ||
| wisekeep/apps | ||
| zitare | ||