Currently testing Growthbook with Vercel's Edge Fu...
# ask-questions
n
Currently testing Growthbook with Vercel's Edge Functions (based on the "A/B Testing with the new Next.js 12 Middleware" example code), but calling
await fetch(FEATURES_ENDPOINT)
gives the following response when deployed to Vercel in Preview:
Copy code
{ cf: undefined,
  webSocket: null,
  url: '<https://cdn.growthbook.io/api/features/[our> key]',
  redirected: false,
  ok: false,
  headers: {},
  statusText: 'Origin SSL Handshake Error',
  status: 525,
  bodyUsed: false,
  body: { locked: false } }
Works fine locally using
vercel dev
. @future-teacher-7046 did you ever experience this error?
f
I haven't seen that before. Looks like it's coming from Cloudflare, which I assume Vercel uses under the hood.
I found a list from Cloudflare about specific issues that could cause the error - https://community.cloudflare.com/t/community-tip-fixing-error-525-ssl-handshake-failed/44256 I'm working through them now to see if there's something about the CDN configuration causing that error
🙌 1
n
Thanks!
f
Can you try again? I switched the CDN to use a dedicated SSL cert instead of a wildcard one.
n
Works fine now, thanks for the help!