Skip to content

Fix Vercel deployment: skip extract-config when YAML unavailable#725

Merged
PavelMakarchuk merged 2 commits intomainfrom
fix-vercel-deploy
Feb 26, 2026
Merged

Fix Vercel deployment: skip extract-config when YAML unavailable#725
PavelMakarchuk merged 2 commits intomainfrom
fix-vercel-deploy

Conversation

@PavelMakarchuk
Copy link
Copy Markdown
Collaborator

Summary

  • The prebuild script (extract-config.js) reads variable_mappings.yaml from the parent repo
  • When Vercel deploys with cps-dashboard as root directory, the parent path doesn't exist, causing the build to fail
  • Added a graceful check: if the YAML source isn't found, skip extraction and use the committed config-data.json

Test plan

  • Verify local bun run build still works (extract-config runs normally)
  • Verify Vercel deployment succeeds (extract-config skips gracefully)

🤖 Generated with Claude Code

PavelMakarchuk and others added 2 commits February 25, 2026 21:46
The prebuild script reads variable_mappings.yaml from the parent repo,
which isn't available when Vercel deploys with cps-dashboard as root
directory. Gracefully skip and use the committed config-data.json.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@PavelMakarchuk PavelMakarchuk merged commit c2a9674 into main Feb 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant