neondatabase / serverless

Connect to Neon PostgreSQL from serverless/worker/edge functions
https://www.npmjs.com/package/@neondatabase/serverless
MIT License
321 stars 13 forks source link

httpQuery is broken in cloudflare workers. #35

Closed nicksrandall closed 1 year ago

nicksrandall commented 1 year ago

httpQuery does not work in Cloudflare worker because they do not support the cache parameter in fetch.

nicksrandall commented 1 year ago

see: https://github.com/cloudflare/workerd/issues/698

jawj commented 1 year ago

Thanks: I've reverted this change in version 0.5.5 while we figure out how to handle this.

jawj commented 1 year ago

OK, this is back in 0.5.6, but we now check that cache: 'no-store' is safe (in a try/catch block) first.