hi all i have a problem with SvelteKit
hi all, i have a problem with SvelteKit endpoint route that is a proxy for Stripe API works only in localhost, but not when deployed to Cloudflare Pages and i don't know why..
2 Replies
all the other endpoint routes i have for 3rd party APIs work just fine (Auth0, SendGrid)
ok, i figured this out — i used
Buffer
module that's only available for Node environment
i changed this to btoa()
and it fixed the issueGlad you got this resolved. Yeah, Buffer doesn't run on Pages Functions (which SvelteKit runs on when using Pages)