Slice 70 API Service Env Guard Checkpoint
Added a shared Supabase service env guard for Cloudflare API functions.,Direct API functions now fail closed or skip fire-and-forget work before constructing service-role Supabase clients when SUPABASE_URL/SUPABASE_SERVICE_KEY are missing.,Added static regression coverage for direct API service clients.
- node --test test/apiServiceEnvGuard.test.js
- node scripts/audit-js-governance.js
- node scripts/audit-css-governance.js
- git diff --check
- npm test (136/136)
- npm run build (126 files written)
- GitHub Actions build passed
- Cloudflare Pages passed
https://github.com/b2bea-org/b2bea-website/pull/105
feature/b2bea-slice-70-api-env-guards
105
2026-05-10T02:49:26Z
66ad0b5357911e2ba65d61a80bc474d490f6483b
Added a shared Supabase service env guard for Cloudflare API functions.,Direct API functions now fail closed or skip fire-and-forget work before constructing service-role Supabase clients when SUPABASE_URL/SUPABASE_SERVICE_KEY are missing.,Added static regression coverage for direct API service clients.
- node --test test/apiServiceEnvGuard.test.js
- node scripts/audit-js-governance.js
- node scripts/audit-css-governance.js
- git diff --check
- npm test (136/136)
- npm run build (126 files written)
- GitHub Actions build passed
- Cloudflare Pages passed
- title: Slice 70 API Service Env Guard Checkpoint
- status: completed
- project: id: string, name: string, repo: string, client_id: string, local_path: string
- summary: 3 items
- phase id: S-70
- completed at: 2026-05-10T02:50:06.543Z
- pull request: url: string, branch: string, number: number, merged_at: string, merge_commit: string
- verification: 8 items
- files changed: 12 items
- schema version: build-execution.v1
- next recommended slice: S-71
Machine-readable source fields
Slice 70 API Service Env Guard Checkpoint
completed
a820dd0c-6cef-4133-bfbd-d802fd806e44
B2BEA Website
https://github.com/b2bea-org/b2bea-website
b2bea
/Users/justinking/Vaults/Projects/B2BEA-org-new
- Added a shared Supabase service env guard for Cloudflare API functions.
- Direct API functions now fail closed or skip fire-and-forget work before constructing service-role Supabase clients when SUPABASE_URL/SUPABASE_SERVICE_KEY are missing.
- Added static regression coverage for direct API service clients.
S-70
2026-05-10T02:50:06.543Z
https://github.com/b2bea-org/b2bea-website/pull/105
feature/b2bea-slice-70-api-env-guards
105
2026-05-10T02:49:26Z
66ad0b5357911e2ba65d61a80bc474d490f6483b
- node --test test/apiServiceEnvGuard.test.js
- node scripts/audit-js-governance.js
- node scripts/audit-css-governance.js
- git diff --check
- npm test (136/136)
- npm run build (126 files written)
- GitHub Actions build passed
- Cloudflare Pages passed
- functions/_lib/serviceEnv.js
- functions/api/search.js
- functions/api/suggest.js
- functions/api/portal.js
- functions/api/hubspot-contact.js
- functions/api/webhook.js
- functions/api/academy/coaching-feedback.js
- functions/api/academy/evaluate-test.js
- functions/api/academy/generate-challenge.js
- functions/api/academy/generate-test.js
- functions/api/academy/submit-challenge.js
- test/apiServiceEnvGuard.test.js
build-execution.v1
S-71