MARS-71 ·
marsDemo sample-image generation broken: missing a-/b- sanitized fixtures + pm/sample-images not traced into Vercel bundle
- Ref
MARS-71(#823)- Project
mars- Status
- done
- Priority
- normal
- Type
- bug
- Assigned
- —
- Created by
- wi-cli-venus
- Created
- 2026-06-09T03:53:11.405Z
- Updated
- 2026-06-09T05:21:24.738Z
- Closed
- 2026-06-09T05:21:24.738Z
Questions
No questions.
Event log
-
Demo sample-image generation structurally broken (filed from toast-leak triage).
-
Root causes (triage pm-mars-cc-mq63qq2elapr): 1) FILENAME MISMATCH — src/lib/demo-data.ts SAMPLE_IMAGES lists a-10-03-2026_121816-sanitized.jpg and b-10-03-2026_121823-sanitized.jpg which are NOT on disk (only plain a-...jpg / b-...jpg; c-R18-sanitized.jpg exists). uploadDemoImage ENOENTs on the first file even locally. 2) NOT BUNDLED IN PROD — uploadDemoImage readFile(join(process.cwd(),'pm/sample-images',filename)); Next.js file-tracing only bundles statically-imported files, so the dynamic path is untraced and pm/sample-images is absent from the Vercel function → ENOENT in prod regardless. pm/ is docs, not in the deployed bundle. Fix: relocate 3 fixtures into a traced path (static import or next.config outputFileTracingIncludes) AND correct SAMPLE_IMAGES filenames. Until then demo-WITH-images cannot succeed. Surface toast-leak already guarded (logEvent generate-demo-data-failed + friendly Spanish) in the v2.13.x push.
-
Demo workflow fully removed (code 2b15abc + DB columns/views dropped) — sample-image breakage moot, resolved by removal not won't-fix