Prisma compatibility problem in cloudflare pages/workers

Hi I am using astro+prisma+D1 as a simplistic ecosystem, but I had a problem because prisma was not solved inside cloudflare pages by the node_modules/.prisma/client, so I compiled the project in a worker, however this causes me other problems like the impossibility to use custom cache. example with astro I should be able to use: Astro.response.response.headers.set('Cache-Control', 'public, max-age=3600'); however this doesn't work in a worker and I haven't found any documentation on what this refers to: https://developers.cloudflare.com/workers/examples/cache-using-fetch/ fetch(event.request, { cf: { cacheEverything: true } }); since I don't make requests with fetch, I need to cache an astro page e.g. index.astro with workers I have not been able to do it, I would like to use cloudflare pages, but all my project is SSR, I still do not know how I can do it correctly the problem with workers is that the request can take up to 200-700ms. i have attached two images the first one is with workers, the second one is a hosting in taiwan with cloudflare forced cache.
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server