- 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>
2 lines
36 B
Plaintext
2 lines
36 B
Plaintext
VITE_API_URL=https://api.hejyou.com
|