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
14 lines
582 B
JSON
14 lines
582 B
JSON
{
|
|
"name": "makeup-lms",
|
|
"private": true,
|
|
"packageManager": "pnpm@9.15.9",
|
|
"scripts": {
|
|
"app:build": "pnpm --filter demo build",
|
|
"demo:build": "NEXT_PUBLIC_LMS_API= pnpm --filter demo build && node tools/artifact-inline.mjs apps/demo/out dist/demo.html && node tools/artifact-check.mjs dist/demo.html",
|
|
"test": "node packages/features/src/domain.check.ts && node packages/data/src/api.check.ts",
|
|
"typecheck": "pnpm -r exec tsc --noEmit",
|
|
"i18n:check": "node tools/i18n-check.mjs"
|
|
},
|
|
"devDependencies": { "jsdom": "^26.1.0", "typescript": "^5.6.0" }
|
|
}
|