I tried to use Amplitude Node SDK on Vercel Edge functions. However, I'm receiving this error:
Can't resolve 'http'
I'm assuming that Amplitude Node SDK might not be compatible with edge runtime. Is there a SDK compatible with the edge runtime?
I tried to use Amplitude Node SDK on Vercel Edge functions. However, I'm receiving this error:
Can't resolve 'http'
I'm assuming that Amplitude Node SDK might not be compatible with edge runtime. Is there a SDK compatible with the edge runtime?
Same problem here - we are currently dropping down to raw HTTP requests [1] to solve this, but an edge-runtime-compatible SDK would be preferred.
Affects Vercel Edge, but presumably also stuff like Cloudflare workers, Deno Deploy, Fastly, etc
p1] https://amplitude.com/docs/apis/analytics/http-v2
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. You can also create a Guest account below!
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. Want to sign up as a guest? Create a Community account.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.