Unfortunately our 3rd party provider received too many requests resulting in downtime.
The $250M cap filled within 156 seconds upon resolution.
We've decided to increase the cap to $1B in an effort to give users access to USDm day 1.
Bridge will reopen at 11am EST.
Working on an x402-powered app recently, using Next.js on the client side — and I ran into something odd.
The official x402 “middleware interceptor” doesn’t behave like the feature they promote.
verify and settle both run before the request is passed to the actual API route.
No real “after-response settlement” like the diagram suggests.
Checked the source code and…
🤔 await https://t.co/ab5I7i5Itq() + if (response.status >= 400)https://t.co/13B7mlUmVn
Looks like something written with Express-style middleware assumptions.
But in Next.js middleware, next() doesn’t pause or wait for the route handler at all. There’s no “after handler” stage. So this logic can’t possibly work the way the diagram implies.
Is this written with old Express muscle memory?
Or am I missing some secret Next.js middleware magic?
Would love insight from folks who’ve built deep Next.js middleware systems. 🙏
@vercel@nextjs@coinbase