Skip to content

Commit

Permalink
feat(deploy): define middleware to deploy into vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
mdolinin committed Feb 13, 2024
1 parent 7a16f9f commit 9421a2f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/github/webhooks/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import handler from "../../../src/handler";
export default handler;
9 changes: 9 additions & 0 deletions src/handler.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { createNodeMiddleware, createProbot } from "probot";
import app from "./index";

const probot = createProbot();

export default createNodeMiddleware(app, {
probot,
webhooksPath: "/api/github/webhooks",
});

0 comments on commit 9421a2f

Please sign in to comment.