fix(build): use the real API by default so the CI build works #6

Merged
naol-yaltopia merged 1 commits from fix/api-default-build into main 2026-11-04 12:03:36 +03:00

The CI server runs a plain next build in apps/demo; it never reads vercel.json, so
app:build and its API URL were skipped. With no URL the app fell back to the demo data
source, which only works inside the hosted artifact sandbox, and rezina.yaltopia.com
showed "0 courses".

  • the API URL is now the default in apps/demo/app/page.tsx; any plain build uses it
  • NEXT_PUBLIC_LMS_API still overrides it (e.g. staging); set empty, it keeps demo data
  • demo:build sets it empty: the artifact sandbox can't reach outside servers
    (artifact check: no network attempts)
  • app:build is now just the plain build; README updated
The CI server runs a plain `next build` in apps/demo; it never reads vercel.json, so `app:build` and its API URL were skipped. With no URL the app fell back to the demo data source, which only works inside the hosted artifact sandbox, and rezina.yaltopia.com showed "0 courses". - the API URL is now the default in apps/demo/app/page.tsx; any plain build uses it - NEXT_PUBLIC_LMS_API still overrides it (e.g. staging); set empty, it keeps demo data - `demo:build` sets it empty: the artifact sandbox can't reach outside servers (artifact check: no network attempts) - `app:build` is now just the plain build; README updated
naol-yaltopia added 1 commit 2026-11-04 11:56:43 +03:00
The CI server runs a plain `next build` in apps/demo; it never reads vercel.json, so
`app:build` and its API URL were skipped. With no URL the app fell back to the demo data
source, which only works inside the hosted artifact sandbox, and rezina.yaltopia.com
showed "0 courses".

- the API URL is now the default in apps/demo/app/page.tsx; any plain build uses it
- NEXT_PUBLIC_LMS_API still overrides it (e.g. staging); set empty, it keeps demo data
- `demo:build` sets it empty: the artifact sandbox can't reach outside servers
  (artifact check: no network attempts)
- `app:build` is now just the plain build; README updated
naol-yaltopia merged commit d6d36b224d into main 2026-11-04 12:03:36 +03:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: RezinaLMS/RezinaLMS-CustomerEnd#6
No description provided.