Skip to content

Commit

Permalink
docs(readme): add considerations for deploying with vercel (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
oscard0m committed Aug 29, 2022
1 parent d6a319c commit 36b33aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ Follow the instructions to register a new GitHub app.

The app is continuously deployed using [Vercel's GitHub app](https://github.com/apps/vercel).

### Considerations
- Make sure you configure [the environment variables for your GitHub App](https://probot.github.io/docs/configuration/) in Vercel. You can read more about how to do it in [their docs](https://vercel.com/docs/concepts/projects/environment-variables).
- Vercel [expects to find your lambda functions under `/api` folder]([url](https://vercel.com/docs/concepts/functions/serverless-functions#deploying-serverless-functions)). Make sure your functions are placed there and double check Vercel detected your Lambda Functions during the deployment process by checking the logs:

![image](https://user-images.githubusercontent.com/2574275/187179364-b0019f95-be41-462a-97d5-facf4de39095.png)

## How it works

The [api/github/webhooks/index.js](api/github/webhooks/index.js) file is handling requests to `POST /api/github/webhooks`, make sure to configure your GitHub App registration's webhook URL accordingly.
Expand Down

1 comment on commit 36b33aa

@vercel
Copy link

@vercel vercel bot commented on 36b33aa Aug 29, 2022

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

example-vercel – ./

example-vercel-probot.vercel.app
example-vercel-git-main-probot.vercel.app
probot-example.vercel.app

Please sign in to comment.