Skip to content

Fix Vercel deploy: move a test out of the api function tree - #20

Merged
nannndev merged 1 commit into
mainfrom
claude/exciting-bell-qakqv7
Sep 27, 2026
Merged

nannndev merged 1 commit into
mainfrom
claude/exciting-bell-qakqv7

Conversation

@nannndev

Copy link
Copy Markdown
Owner

Summary

The deploys for #18 and #19 failed on Vercel. api/ranked/challenge.test.ts counted as a 13th serverless function, over the Hobby plan's 12.

  • Moved the test to api/_lib/ranked-challenge.test.ts, since _-prefixed folders are not deployed as functions.
  • Added api/_lib/function-count.test.ts. It fails if api/ holds more than 12 functions or includes any test file.

Test plan

  • vitest: 172 tests pass.
  • tsc -b passes.
  • Vercel preview deploy status on this PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_018xNjY7412Rp5bFuw5h69yu


Generated by Claude Code

api/ranked/challenge.test.ts deployed as a 13th serverless function,
over the Hobby plan's 12. Tests under api/ now live in api/_lib, and a
guard test fails if the function count goes over the limit again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018xNjY7412Rp5bFuw5h69yu
@vercel

vercel Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
codetype Ready Ready Preview Sep 27, 2026 3:58am UTC

@nannndev
nannndev merged commit 738de41 into main Sep 27, 2026
2 checks passed

This branch was successfully deployed

1 active deployment
Preview — 4fa22d33 Deployed Sep 27, 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.

2 participants