- Use ngrok to test the webhook locally. Run
ngrok http 3000
and copy the URL. - Follow the instructions in the package readme to get a GitHub token.
- Setup a GitHub Webhook. Use
https://my-ngrok-url/api/next-flag
as the payload URL for the Webhook. - Add the token and secret to
.env.local
. - Create a new issue with the contents below. Take note of the issue number.
- Modify
src/app/api/next-flag/nf.ts
to include the repository and issue number. - Install the dependencies with
npm install
. - Start the NextJS app with
npm run dev
. - Modify the issue to see the changes reflected in the app.
# 🏁 Feature Flags
## Next logo
- [x] Enabled
### Production
- [x] Enabled
### Preview
- [x] Enabled
### Development
- [ ] Enabled
## Vercel logo
- [x] Enabled
## Getting started
- [x] Enabled
## Footer
- [x] Enabled