kwhitley / itty-durable

Cloudflare Durable Objects + Itty Router = shorter code
MIT License
236 stars 18 forks source link

Possibly pass event through to the router #6

Open repzip opened 3 years ago

repzip commented 3 years ago

Hi,

I was playing with workers sites yesterday but ran into a problem trying to integrate it with itty router.

The core issue is that to get the static files you need to send the "event" itself and not the request.

Can anyone think of a workaround for this? As itty router only wants the event.request object.

Thank you in advance.