-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4488d1
commit f267538
Showing
4 changed files
with
62 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,43 @@ | ||
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). | ||
## Running the NextJS example | ||
|
||
## Getting Started | ||
1. Use [ngrok](https://ngrok.com/) to test the webhook locally. Run `ngrok http 3000` and copy the URL. | ||
2. Follow the instructions in the package readme to get a GitHub token. | ||
3. Setup a GitHub Webhook. Use `https://my-ngrok-url/api/next-flag` as the payload URL for the Webhook. | ||
4. Add the token and secret to `.env.local`. | ||
5. Create a new issue with the contents below. Take note of the issue number. | ||
6. Modify `src/app/api/next-flag/nf.ts` to include the repository and issue number. | ||
7. Install the dependencies with `npm install`. | ||
8. Start the NextJS app with `npm run dev`. | ||
9. Modify the issue to see the changes reflected in the app. | ||
|
||
First, run the development server: | ||
```markdown | ||
# 🏁 Feature Flags | ||
|
||
```bash | ||
npm run dev | ||
# or | ||
yarn dev | ||
# or | ||
pnpm dev | ||
# or | ||
bun dev | ||
``` | ||
## Next logo | ||
|
||
- [x] Enabled | ||
|
||
### Production | ||
|
||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. | ||
- [x] Enabled | ||
|
||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. | ||
### Preview | ||
|
||
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. | ||
- [x] Enabled | ||
|
||
## Learn More | ||
### Development | ||
|
||
To learn more about Next.js, take a look at the following resources: | ||
- [ ] Enabled | ||
|
||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. | ||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. | ||
## Vercel logo | ||
|
||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! | ||
- [x] Enabled | ||
|
||
## Deploy on Vercel | ||
## Getting started | ||
|
||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. | ||
- [x] Enabled | ||
|
||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. | ||
## Footer | ||
|
||
- [x] Enabled | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters