Skip to content

feat: feature-flag funkit checkout behind NEXT_PUBLIC_ENABLE_FUNKIT#3031

Open
yogurtandjam wants to merge 1 commit into
aave:feat/funkit-integrationfrom
yogurtandjam:feat/funkit-feature-flag
Open

feat: feature-flag funkit checkout behind NEXT_PUBLIC_ENABLE_FUNKIT#3031
yogurtandjam wants to merge 1 commit into
aave:feat/funkit-integrationfrom
yogurtandjam:feat/funkit-feature-flag

Conversation

@yogurtandjam

Copy link
Copy Markdown

Summary

  • Adds NEXT_PUBLIC_ENABLE_FUNKIT env var (defaults to false) to gate the entire funkit checkout integration
  • When disabled: FunkitCheckout renders nothing, isFunSupplyAsset() returns false, all Supply buttons use the native Aave modal
  • When enabled ('true'): existing funkit behavior is unchanged
  • Flag is wired through CI (build action + both deploy workflows) and set to 'true' alongside NEXT_PUBLIC_FUNKIT_API_KEY

Changes

  • src/utils/marketsAndNetworksConfig.ts — new ENABLE_FUNKIT constant (matches existing ENABLE_TESTNET/STAGING_ENV pattern)
  • src/components/transactions/FunCheckout/funSupplyAssets.tsisFunSupplyAsset() short-circuits when flag is off
  • src/components/transactions/FunCheckout/FunkitCheckout.tsxFunkitCheckout() returns null when flag is off
  • .env.example / .env.development — declares the flag
  • .github/actions/build/action.yml + both workflow files — passes the flag through CI

Test plan

  • Local dev with NEXT_PUBLIC_ENABLE_FUNKIT=false: supply buttons use native modal, no funkit provider mounts
  • Local dev with NEXT_PUBLIC_ENABLE_FUNKIT=true + valid API key: funkit checkout works as before
  • CI build succeeds with the new flag

🤖 Generated with Claude Code

@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

@yogurtandjam is attempting to deploy a commit to the Aave Team on Vercel.

A member of the Team first needs to authorize it.

Gate the entire funkit integration behind a single env-var flag so it
can be turned on/off per environment without code changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@yogurtandjam yogurtandjam force-pushed the feat/funkit-feature-flag branch from de289e4 to 1823b2e Compare June 17, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant