Skip to content

feat: move fee percentile to edge config#84

Merged
passandscore merged 3 commits intomainfrom
miles-edge-config
Mar 24, 2026
Merged

feat: move fee percentile to edge config#84
passandscore merged 3 commits intomainfrom
miles-edge-config

Conversation

@passandscore
Copy link
Contributor

Summary

  • Add /api/config/fee-percentile edge config endpoint reading miles_estimate_fee_percentile key
  • Update useEstimatedMiles to fetch the percentile once on page load (module-level) instead of hardcoding 55
  • Falls back to 55 if edge config is unset or fetch fails

Test plan

  • Set miles_estimate_fee_percentile in Vercel Edge Config and verify the hook uses the new value
  • Verify fallback to 55 when key is not set
  • Confirm miles estimation still works correctly end-to-end

Add /api/config/fee-percentile endpoint reading miles_estimate_fee_percentile
from Vercel Edge Config. The hook fetches it once on page load with a fallback
default of 55.
@vercel
Copy link

vercel bot commented Mar 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
fastprotocolapp Ready Ready Preview, Comment Mar 24, 2026 10:39pm

Request Review

@passandscore passandscore merged commit a46f513 into main Mar 24, 2026
2 of 3 checks passed
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