-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dashboard] Add Cloudflare Turnstile to Faucet page #5067
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5067 +/- ##
=======================================
Coverage 45.29% 45.29%
=======================================
Files 1059 1059
Lines 54728 54728
Branches 3954 3954
=======================================
Hits 24791 24791
Misses 29246 29246
Partials 691 691
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
f2ba43a
to
d84d442
Compare
d84d442
to
1510ca8
Compare
1510ca8
to
0ae9332
Compare
6c63fd4
to
fe0396e
Compare
fe0396e
to
516553e
Compare
516553e
to
440af68
Compare
Merge activity
|
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces support for Cloudflare Turnstile captcha validation in the faucet functionality of the dashboard application, enhancing security during fund claims. It also updates dependencies and configuration for the new feature. ### Detailed summary - Added `TURNSTILE_SITE_KEY` constant to `env.ts`. - Updated `package.json` to include `@marsidev/react-turnstile`. - Modified `.env.example` to add `NEXT_PUBLIC_TURNSTILE_SITE_KEY` and `TURNSTILE_SECRET_KEY`. - Updated `next.config.js` to allow scripts from Cloudflare. - Enhanced `POST` handler in `route.ts` to validate `turnstileToken`. - Updated `FaucetButton.tsx` to integrate Turnstile captcha and form handling. - Introduced `claimFaucetSchema` for form validation using `zod`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
440af68
to
0dd1438
Compare
Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR introduces support for Cloudflare Turnstile captcha in the faucet functionality of the dashboard application, enhancing security during claims. It also updates dependencies and configuration files to accommodate these changes.
Detailed summary
TURNSTILE_SITE_KEY
constant inenv.ts
.API_SERVER_SECRET
and added new environment variables in.env.example
.next.config.js
to allow Cloudflare's challenges.POST
request inroute.ts
to includeturnstileToken
.FaucetButton.tsx
to integrate Turnstile captcha and form handling.turnstileToken
.zod
.package.json
andpnpm-lock.yaml
.