@astro.build Is it possible to set up my own worker script similar to Remix `handleRequest()`? I want to set up custom SWR caching, but the only option is the Vite configuration with Cloudflare proxy plugin?
Post
```ts export default { async fetch(request, env, ctx) { try { return await handleRequest(request, env, ctx); } catch (ex) { return new Response('Internal server error', { status: 500 }); } }, } satisfies ExportedHandler<Env>; ```
0 reposts1 like
No replies yet.