-
Notifications
You must be signed in to change notification settings - Fork 977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Probot 12 app not working on NextJS and vercel #1587
Comments
Thanks for opening this issue. A contributor should be by to give feedback soon. In the meantime, please check out the contributing guidelines and explore other ways you can get involved. |
Try this export default createNodeMiddleware(app, {
probot,
webhooksPath: "api/webhooks"
}); We missed to document that option, sorry. If it works for you, could you send a pull request to update the docs at https://github.com/probot/probot/blob/master/docs/development.md#use-createnodemiddleware?
|
Thanks, that worked! opened the pr: #1588 |
🎉 This issue has been resolved in version 12.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Bug Report
Current Behavior
I had a probot 11 app that uses NextJS and typescript and is deployed on vercel. When I upgrade to probot 12, it fails because
createProbot()
no longer acceptswebhookPath
property. And if I remove it, I get the following error:You can find the repo for minimal reproduction at https://github.com/maximousblk/probot-nextjs-starter
Expected behavior/code
Should handle the webhook properly
Environment
12.1.0
v16.6.1
(local) andv14.17.5
(Vercel)Ubuntu 20.04.3 LTS
(local) andAmazon Linux 2
(Vercel)Possible Solution
Additional context/Screenshots
The text was updated successfully, but these errors were encountered: