## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on enhancing the functionality of the `Faucet` feature in the dashboard application. It introduces new environment variables, updates modal components to allow for state management, and improves API endpoints for better user authentication and request handling.
### Detailed summary
- Added `REDIS_URL` and updated `TURNSTILE_SECRET_KEY` in `.env.example`.
- Updated `turbo.json` to include new environment variables.
- Modified `OnboardingModal` to accept `onOpenChange` prop for state management.
- Enhanced API routes to check for email verification before allowing faucet claims.
- Improved error handling for wallet connections and request limits.
- Updated `FaucetButton` to show onboarding modal for email verification.
- Added caching logic for user requests to prevent abuse.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
124 lines
3.0 KiB
JSON
124 lines
3.0 KiB
JSON
{
|
|
"$schema": "https://turborepo.org/schema.json",
|
|
"globalEnv": ["CI", "TW_SECRET_KEY"],
|
|
"tasks": {
|
|
"build": {
|
|
"outputs": ["dist/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"bench": {
|
|
"cache": false,
|
|
"dependsOn": []
|
|
},
|
|
"typedoc": {
|
|
"outputs": ["typedoc/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"thirdweb-dashboard#build": {
|
|
"env": [
|
|
"SENTRY_AUTH_TOKEN",
|
|
"MORALIS_API_KEY",
|
|
"ETHERSCAN_KEY",
|
|
"SSR_ALCHEMY_KEY",
|
|
"BEEHIIV_API_KEY",
|
|
"GITHUB_API_TOKEN",
|
|
"LUMA_API_KEY",
|
|
"HUBSPOT_ACCESS_TOKEN",
|
|
"API_ROUTES_CLIENT_ID",
|
|
"DASHBOARD_SECRET_KEY",
|
|
"SIMPLEHASH_API_KEY",
|
|
"NEYNAR_API_KEY",
|
|
"THIRDWEB_ENGINE_URL",
|
|
"THIRDWEB_ACCESS_TOKEN",
|
|
"THIRDWEB_ENGINE_ACCESS_TOKEN",
|
|
"DEGEN_THIRDWEB_ENGINE_WALLET",
|
|
"THIRDWEB_ENGINE_WALLET",
|
|
"UNTHREAD_TRIAGE_CHANNEL_ID",
|
|
"UNTHREAD_EMAIL_INBOX_ID",
|
|
"UNTHREAD_FREE_TIER_ID",
|
|
"UNTHREAD_GROWTH_TIER_ID",
|
|
"UNTHREAD_PRO_TIER_ID",
|
|
"REDIS_URL",
|
|
"UNTHREAD_API_KEY",
|
|
"CHAINSAW_API_KEY",
|
|
"ANALYTICS_SERVICE_URL",
|
|
"ANALYTICS_SERVICE_API_KEY",
|
|
"DISABLE_FAUCET_CHAIN_IDS",
|
|
"API_SERVER_SECRET",
|
|
"TURNSTILE_SECRET_KEY",
|
|
"NEXT_PUBLIC_TURNSTILE_SITE_KEY",
|
|
"NEXT_PUBLIC_THIRDWEB_ENGINE_FAUCET_WALLET"
|
|
],
|
|
"outputs": [".next/**", "!.next/cache/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"portal#build": {
|
|
"outputs": [".next/**", "!.next/cache/**", "searchIndex.json"],
|
|
"dependsOn": ["^build", "thirdweb#typedoc"]
|
|
},
|
|
"portal#dev": {
|
|
"dependsOn": ["^build", "thirdweb#typedoc"]
|
|
},
|
|
"playground-web#build": {
|
|
"outputs": [".next/**", "!.next/cache/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"wallet-ui#build": {
|
|
"outputs": [".next/**", "!.next/cache/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"thirdweb#update-version": {
|
|
"inputs": ["package.json"],
|
|
"outputs": ["src/version.ts"]
|
|
},
|
|
"test": {
|
|
"outputs": ["coverage/**"],
|
|
"inputs": ["src/**", "test/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"storybook": {
|
|
"inputs": ["src/**"]
|
|
},
|
|
"test:legacy": {
|
|
"outputs": ["coverage/**"],
|
|
"inputs": ["src/**", "test/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"e2e": {
|
|
"outputs": [],
|
|
"inputs": ["src/**", "fixtures/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"e2e:legacy": {
|
|
"outputs": [],
|
|
"inputs": ["src/**", "fixtures/**"],
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"lint": {
|
|
"cache": false,
|
|
"outputs": []
|
|
},
|
|
"lint:legacy": {
|
|
"cache": false,
|
|
"outputs": []
|
|
},
|
|
"fix": {
|
|
"cache": false,
|
|
"outputs": []
|
|
},
|
|
"format": {
|
|
"cache": false
|
|
},
|
|
"dev": {
|
|
"cache": false,
|
|
"persistent": true
|
|
},
|
|
"thirdweb-dashboard#dev": {
|
|
"dependsOn": ["^build"]
|
|
},
|
|
"clean": {
|
|
"cache": false
|
|
}
|
|
}
|
|
}
|