fix: use correct x402 facilitator URL (www.x402.org)
The bare domain x402.org/facilitator returns a 308 redirect that breaks payment verification. Use www.x402.org/facilitator instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5090676eda
commit
2a7071edb4
|
|
@ -95,7 +95,7 @@ export function setupX402FromEnv(overrides?: Partial<X402Config>): MiddlewareHan
|
||||||
payTo,
|
payTo,
|
||||||
network: process.env.X402_NETWORK || "eip155:84532",
|
network: process.env.X402_NETWORK || "eip155:84532",
|
||||||
amount: process.env.X402_UPLOAD_PRICE || "0.01",
|
amount: process.env.X402_UPLOAD_PRICE || "0.01",
|
||||||
facilitatorUrl: process.env.X402_FACILITATOR_URL || "https://x402.org/facilitator",
|
facilitatorUrl: process.env.X402_FACILITATOR_URL || "https://www.x402.org/facilitator",
|
||||||
...overrides,
|
...overrides,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue