Commit 5484a0d
committed
refactor(vercel): normalize env responses and helpers
Introduce utilities to robustly handle Vercel API response shapes:
- add normalizeTarget to coerce target values into string arrays
- add extractEnvs to safely pull envs arrays from union responses
Replace ad-hoc existence checks and inline normalization with these helpers
in getVercelEnvironmentVariables and getVercelEnvironmentVariableValues to
avoid runtime errors when API returns varying shapes (string vs array vs
missing). This simplifies mapping logic and centralizes normalization.
Remove several outdated JSDoc comments and compress inline documentation to
keep the implementation focused and more readable.1 parent 6a09e0a commit 5484a0d
File tree
2 files changed
+98
-375
lines changed- apps/webapp/app
- models
- routes
2 files changed
+98
-375
lines changed
0 commit comments