Replace Next.js with Vercel native serverless functions#109
Replace Next.js with Vercel native serverless functions#109marcalexiei wants to merge 3 commits intochangesets:masterfrom
Conversation
|
@marcalexiei is attempting to deploy a commit to the Changesets Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Deployment fails with: |
There was a problem hiding this comment.
Added a vercel.json with a minimal configuration setting "framework": null.
This disables Vercel’s framework auto-detection, which was incorrectly identifying the project as Next.js after the migration to native serverless functions.
If the deployment still fails, check the Vercel dashboard → Project Settings → General → Framework Preset, and change it from “Next.js” to “Other”.
Note
I’m not very familiar with Vercel, so I used Claude to help identify potential causes for the log you shared.
|
Hitting |
| "homepage": "https://github.com/apps/changeset-bot", | ||
| "license": "MIT", | ||
| "repository": "https://github.com/changesets/bot", | ||
| "type": "module", |
There was a problem hiding this comment.
ts files are compiled to ESM but we don't have "type": "module", so probably the runtime is threading them as CJS so they error once they execute the first import.
Let's see if now works!
next.js#108nextwas only used to expose a single webhook endpoint.This PR removes it entirely in favour of Vercel's zero-config api/ directory convention.
Important
I've read about here: https://vercel.com/docs/functions,
it sounds that they should be enough for the bot use case