Configuration Reference
Environment variables, route conventions, auth cookies, and operational settings
This page documents high-impact configuration values used across IDPicker modules.
1. Core Environment Variables
| Key | Typical Value (Local) | Used By | Purpose |
|---|---|---|---|
| NEXT_PUBLIC_API_BASE_URL | http://localhost:8000/api | Student, Advisor, Parent, Admin dashboards | Base API URL for frontend requests |
| NODE_ENV | development / production | All frontends | Runtime mode and behavior switches |
Notes:
- Frontends append role-specific paths in API clients where needed.
- Some shared endpoints remove role suffix at runtime in client helper logic.
2. Local Frontend Dev URLs
| App | Typical Local URL |
|---|---|
| Student module frontend | http://localhost:3000 |
| Admin dashboard | http://localhost:3001 |
| Advisor dashboard | http://localhost:3002 |
| Parent dashboard | http://localhost:3003 |
3. Authentication Cookies (Frontend)
| Role | Cookie Name | Purpose |
|---|---|---|
| Student | authToken | Student API authorization token |
| Advisor | authTokenAdvisor | Advisor API authorization token |
| Parent | authTokenParent | Parent API authorization token |
| Admin | authTokenAdmin | Admin API authorization token |
Operational notes:
- Most clients send token using
Authorization: Token <value>. - Expiry and refresh behavior depend on backend auth policy.
4. High-Impact Routing Conventions
| Pattern | Meaning |
|---|---|
| /dashboard | Default authenticated landing route |
| /dashboard/{module} | Module-specific workspace |
| /dashboard/{entityId} | Entity detail page |
| /form/{responseId} | Dynamic form response route |
| /login, /reset-password, /verify-email, /setup-password | Authentication utility routes |
5. Status and Priority Conventions
Support tickets commonly use:
- Status: pending, in_progress, resolved, closed
- Priority: low, medium, high, urgent
These values should be treated as canonical unless backend schema changes.
6. Localization Conventions
| Item | Convention |
|---|---|
| Supported locales | English and Turkish |
| Namespace usage | Feature/module namespace prefixes |
| Fallback behavior | Default locale used when key missing |
7. Safe Configuration Change Process
- Update environment variable in target deployment.
- Restart relevant frontend/backend services.
- Validate login and one API call per role.
- Validate one localized page in EN and TR.
- Validate one ticket/notification flow for operational modules.
8. Configuration Validation Checklist
- API base URL resolves from frontend container/browser.
- Auth cookie is created after login for target role.
- Protected routes redirect correctly for unauthenticated users.
- Form response route and dashboard route both resolve.
- Translation API and language switch operations respond correctly.