Commit graph

8 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
GoHorse Deploy
197e40bc2c fix: change default API URL to /api/v1 2026-02-07 15:37:45 +00:00
Tiago Yamamoto
5f5afbaf43 fix(frontend): robust runtime config loading in api layer 2025-12-31 10:06:11 -03:00
Tiago Yamamoto
1eb3da814d fix(frontend): block access until runtime config is loaded 2025-12-31 09:56:01 -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