Commit graph

9 commits

Author SHA1 Message Date
GoHorse Deploy
5291f3f15d chore: database reset, frontend API configuration 2026-02-09 14:11:05 +00:00
GoHorse Deploy
e51a16f622 trigger rebuild 2026-02-07 19:48:28 +00:00
GoHorse Deploy
fee98a651b fix: standardize apiUrl to api.rede5.com.br 2026-02-07 16:51:04 +00:00
GoHorse Deploy
ec974e8b1f fix: point apiUrl to api-dev.gohorsejobs.com 2026-02-07 16:36:04 +00:00
eycksilva
ac6c0d0276 erro de commit corrigido 2026-01-21 12:39:04 -03:00
eycksilva
d916bee429 att layout 2026-01-21 12:33:57 -03:00
NANDO9322
23ff95f1a8 fix: correcao cloudflare 2026-01-08 10:07:14 -03:00
Tiago Yamamoto
4577310c75 feat(frontend): use runtime env vars for config endpoint
Changed /api/config to read API_URL (without NEXT_PUBLIC_ prefix)
which allows runtime configuration without rebuilding the image.

Priority order:
1. API_URL (runtime env var)
2. NEXT_PUBLIC_API_URL (build-time fallback)
3. Default localhost values
2025-12-31 09:39:02 -03:00
Tiago Yamamoto
0da936550b feat(frontend): add runtime config for environment variables
- Add /api/config endpoint for runtime env var fetching
- Add config.ts service with sync getters (getApiUrl, getBackofficeUrl, etc.)
- Add ConfigContext for React components
- Update api.ts, auth.ts, storage.ts to use runtime config
- Update layout.tsx to wrap app with ConfigProvider
- Fix Dockerfile default port from 8080 to 8521

This allows the frontend to read environment variables at runtime
instead of baking them in during build time.
2025-12-31 08:48:32 -03:00