719 B
719 B
UTMS Next.js Frontend Setup
Install
npm install
Environment
Create .env.local from .env.example:
NEXT_PUBLIC_API_BASE_URL=http://localhost:9191
NEXT_PUBLIC_DEFAULT_TENANT=acme
NEXT_PUBLIC_LOCALE=en
NEXT_PUBLIC_AUTH_MODE=local
Run
npm run dev
Application opens on:
http://localhost:3000/loginfor sign-inhttp://localhost:3000/dashboardfor admin pages
Notes
- JWT token and tenant are persisted in localStorage via Zustand.
tenantandlocaleare kept across refresh.- 401 and 403 are handled globally in Axios interceptor with redirect/toast.
LOGINerrors show backend message directly, including lockout and LDAP provisioning errors.