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

KeyTypical Value (Local)Used ByPurpose
NEXT_PUBLIC_API_BASE_URLhttp://localhost:8000/apiStudent, Advisor, Parent, Admin dashboardsBase API URL for frontend requests
NODE_ENVdevelopment / productionAll frontendsRuntime mode and behavior switches

Notes:

  1. Frontends append role-specific paths in API clients where needed.
  2. Some shared endpoints remove role suffix at runtime in client helper logic.

2. Local Frontend Dev URLs

AppTypical Local URL
Student module frontendhttp://localhost:3000
Admin dashboardhttp://localhost:3001
Advisor dashboardhttp://localhost:3002
Parent dashboardhttp://localhost:3003

3. Authentication Cookies (Frontend)

RoleCookie NamePurpose
StudentauthTokenStudent API authorization token
AdvisorauthTokenAdvisorAdvisor API authorization token
ParentauthTokenParentParent API authorization token
AdminauthTokenAdminAdmin API authorization token

Operational notes:

  1. Most clients send token using Authorization: Token <value>.
  2. Expiry and refresh behavior depend on backend auth policy.

4. High-Impact Routing Conventions

PatternMeaning
/dashboardDefault 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-passwordAuthentication 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

ItemConvention
Supported localesEnglish and Turkish
Namespace usageFeature/module namespace prefixes
Fallback behaviorDefault locale used when key missing

7. Safe Configuration Change Process

  1. Update environment variable in target deployment.
  2. Restart relevant frontend/backend services.
  3. Validate login and one API call per role.
  4. Validate one localized page in EN and TR.
  5. Validate one ticket/notification flow for operational modules.

8. Configuration Validation Checklist

  1. API base URL resolves from frontend container/browser.
  2. Auth cookie is created after login for target role.
  3. Protected routes redirect correctly for unauthenticated users.
  4. Form response route and dashboard route both resolve.
  5. Translation API and language switch operations respond correctly.