maxfi
Remix v2.8.1 (vite) on Vercel serverless function timeout when making xata db calls
It might be worth updating https://github.com/xataio/examples/tree/main/apps/getting-started-remix to the latest version of remix with vite to repro the issue
27 replies
Remix v2.8.1 (vite) on Vercel serverless function timeout when making xata db calls
So it seems to be a weird
fetch
polyfill issue with remix on vercel.
https://github.com/inngest/inngest-js/issues/304 Was really helpful!27 replies
Remix v2.8.1 (vite) on Vercel serverless function timeout when making xata db calls
I would have thought that https://github.com/xataio/client-ts/blob/655a9615349dab0e4b58add9a414382cc3bbc033/packages/client/src/util/fetch.ts#L22 would pick up the vercel/remix polyfilled
fetch
?27 replies
Remix v2.8.1 (vite) on Vercel serverless function timeout when making xata db calls
I'm pretty sure this is the issue: https://github.com/vercel/remix/issues/62
27 replies
Remix v2.8.1 (vite) on Vercel serverless function timeout when making xata db calls
In the vercel example it still has
installGlobals
in the vite config: https://github.com/vercel/vercel/blob/7a28972897c031dcc247d3b7fae88ed1f1deaaaf/examples/remix/vite.config.ts#L227 replies
Remix v2.8.1 (vite) on Vercel serverless function timeout when making xata db calls
Possibly related: https://github.com/orgs/vercel/discussions/4604
27 replies
Remix v2.8.1 (vite) on Vercel serverless function timeout when making xata db calls
So I thought that maybe it was because the returned data wasn't serialized so I update the route code to:
I still get the
TypeError: First parameter has member 'readable' that is not a ReadableStream.
error. Also, the console.log(serializedProduct);
isn't shown in the vercel runtimes logs. So I'm pretty sure it's something to do with the xata client unfortunately.
Any ideas? Thanks!27 replies