Thin proxy between React app and Directus. Admin token stays server-side; clients get own 30-day JWTs. Endpoints: /auth/* register/login/profile/me, /words, /questions, /qa-pairs, /pair, /progress, /assets/:fileId Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
6 lines
169 B
Plaintext
6 lines
169 B
Plaintext
DIRECTUS_URL=https://db.hejyou.com
|
|
DIRECTUS_ADMIN_TOKEN=your-admin-token-here
|
|
JWT_SECRET=generate-a-long-random-string-here
|
|
PORT=3000
|
|
CORS_ORIGIN=https://app.hejyou.com
|