9 ms·
Is there a design reason why the example does “new lowstorage” on each hono endpoint?
by Flam 3y ago
Is there a design reason why the example does “new lowstorage” on each hono endpoint?
- neon_me 3y agoyou want to get context (c) and its env inside function to get to R2 instance - in vanilla worker code it would be wrapped inside async fetch(request, env, ctx)