fix(console): add preprod build script#2593
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Merging this PR will not alter performance
Comparing Footnotes
|
|
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_630df52a-1dd3-4718-9cba-230530b8ac10) |
|
@coderabbitai review |



Summary
build:preprodso the console can be built withBRANCH=preprodpreprodbefore falling back to prodalpha-> development andlocalbehaviorValidation
bun run build:preprodhttps://api.capgo.app= 0,https://console.capgo.app= 0,https://api.preprod.capgo.app= 3bun lintexited 0; existing warnings onlybun run cli:typecheck && bun run typecheck:backend && bun run typecheck:frontendNote
Low Risk
Small build-script and config-resolution change; wrong keys would only affect preprod bundle URLs, not runtime prod behavior.
Overview
Adds a
build:preprodnpm script so production Vite builds can run withBRANCH=preprod, matching the existing dev-stylebuild:devpattern.Updates
getRightKeyinscripts/utils.mjsso whenBRANCHis a named environment (e.g.preprod), it picks the matching entry fromconfigs.jsonbefore defaulting to prod.alphastill maps to development andlocalis unchanged—this fixes preprod builds that would otherwise bake in production Supabase/API URLs.Reviewed by Cursor Bugbot for commit dbca8ce. Bugbot is set up for automated code reviews on this repo. Configure here.