Skip to content

Consolidate Classroom API to restore Vercel production deployment - #322

Merged
MajorIncident merged 33 commits into
mainfrom
fix/vercel-classroom-function-budget
Oct 7, 2026
Merged

MajorIncident merged 33 commits into
mainfrom
fix/vercel-classroom-function-budget

Conversation

@MajorIncident

@MajorIncident MajorIncident commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

Issue

Problem

#314 and #315 are green in GitHub but production Vercel deployments fail with exceeded_serverless_functions_per_deployment. The Hobby plan permits at most 12 Serverless Functions, so production is still serving #308.

Architecture

Preserve every existing public /api/classes/** URL, but route them through one Vercel function and immediately delegate to the existing tested handler factories. Routing is not authorization; every handler retains its existing method/capability/payload checks.

Workspace collaboration functions remain separate.

Checkpoints

  • single-function Classroom dispatcher + unit coverage
  • Vercel rewrites + remove redundant Classroom route wrappers
  • deterministic <=12 function-budget guard in canonical quality/build
  • deployment/cold-start docs
  • all GitHub gates green
  • merge and verify exact-main production deployment reaches READY
  • post-deploy runtime error scan

No Classroom authorization or response contract is intentionally changing.

Deployment acceptance

Current conservative Vercel function candidates: 5 / 12.

This PR is not complete on GitHub evidence alone. Before merge:

  1. all required GitHub gates green;
  2. a verify/** branch at the exact PR head must produce a Vercel deployment rather than the prior function-count error.

After merge:

  1. exact merged main SHA must reach production READY;
  2. runtime error scan must be clean;
  3. close Deployment blocker: consolidate Classroom API functions below Vercel Hobby limit #321 and unblock Classroom follow-on: Protected staged case assets and rich Student case rendering #316.

@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
intake Ignored Ignored Preview Oct 7, 2026 5:04am UTC

@MajorIncident
MajorIncident marked this pull request as ready for review October 7, 2026 05:05
@MajorIncident
MajorIncident merged commit 21bff1d into main Oct 7, 2026
7 checks passed
@MajorIncident
MajorIncident deleted the fix/vercel-classroom-function-budget branch October 7, 2026 05:05

This branch was successfully deployed

1 active deployment
Preview — 9094a3fa Deployed Oct 7, 2026 by vercel[bot]
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.

Deployment blocker: consolidate Classroom API functions below Vercel Hobby limit

1 participant