Commit Graph

2 Commits

Author SHA1 Message Date
bccec179a4 feat: migrate from Directus direct → API server (api.hejyou.com)
- directus.js: all calls now go to /languparent/* on api.hejyou.com
- Admin token and Directus URL no longer in the browser
- JWT issued by API server (30 days), stored in localStorage
- register: single call returns userId, profile step gets fresh JWT
- login: handles needsProfile flag (403) cleanly
- assetUrl: proxy via /languparent/assets/:fileId (no token in URL)
- .env.production: VITE_DIRECTUS_URL → VITE_API_URL

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 22:43:36 +02:00
0730fe6e8e chore: add .env.production and simplify Dockerfile
Bake VITE_DIRECTUS_URL into production build via .env.production
so no Coolify build-arg configuration is needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 22:19:15 +02:00