Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThe PR updates environment configurations to replace the events API base URL with a core API base URL across all environment files (.env.development, .env.staging, .env.prod). It introduces Turnstile CAPTCHA integration by adding the NEXT_PUBLIC_TURNSTILE_SITE_KEY variable and a new npm dependency ( Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Deploying with Cloudflare Pages
|
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Fix all issues with AI agents
In `@package.json`:
- Line 21: The dependency "@marsidev/react-turnstile": "^1.4.1" is unmaintained
and may be incompatible with current React; either verify compatibility or
replace it: confirm by running the app build and test suite against your current
React version and check for runtime warnings in components that import this
package (search for imports of "@marsidev/react-turnstile"); if
incompatibilities or security concerns are found, replace the entry in
package.json with a maintained alternative (for example the official Cloudflare
wrapper or another actively maintained package), update any import paths and
component usage to the new package's API (adjust props/handlers in components
that reference the old package), then reinstall dependencies and run full
CI/tests to ensure no regressions.
In `@src/app/`(membership)/admin/sync/page.tsx:
- Line 33: Remove the unused constant baseUrl declared as `const baseUrl =
process.env.NEXT_PUBLIC_CORE_API_BASE_URL;` since it is never referenced; simply
delete that line and ensure any API calls use the existing `syncIdentity` import
from `@/utils/api` (which handles its own base URL) so no other changes are
required.
In `@src/app/`(membership)/merch/page.tsx:
- Line 69: The Turnstile widget currently only uses onSuccess={setToken},
leaving a stale token when the widget expires or errors; update each Turnstile
usage to add onExpire and onError handlers that clear the token (call
setToken(undefined) or setToken('')) so the component state resets and users can
retry verification; look for the Turnstile components in this file (and other
occurrences of the token state and setToken) and attach onExpire={() =>
setToken(undefined)} and onError={() => setToken(undefined)} alongside the
existing onSuccess handler.
Summary by CodeRabbit
Release Notes
New Features
Chores
✏️ Tip: You can customize this high-level summary in your review settings.