Skip to content

Commit

Permalink
fix: set webhooksPath correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Oct 21, 2021
1 parent 5c8ce98 commit 3dcc58e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions api/github/webhooks.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
const { createNodeMiddleware, createProbot } = require("probot");

const app = require("../../app");
const probot = createProbot({
overrides: {
// override default "/" path
webhookPath: "/api/github/webhooks",
},
});

module.exports = createNodeMiddleware(app, { probot });
module.exports = createNodeMiddleware(app, {
probot: createProbot(),
webhooksPath: "/api/github/webhooks",
});

1 comment on commit 3dcc58e

@vercel
Copy link

@vercel vercel bot commented on 3dcc58e Oct 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.