itty.dev - itty.dev

Heads up to the Workers crowd, itty-router v5 just dropped this morning. Batteries-included API, all-in for ~1kB. https://itty.dev/
itty.dev - itty.dev
Ultra-small, powerful helpers for modern serverless APIs.
No description
3 Replies
Kevin
Kevin7mo ago
Disclaimer: this works great in production, but not in local wrangler dev thanks to a fun little #wrangler issue. https://github.com/cloudflare/workers-sdk/issues/5420 For local development using wrangler dev, simply export like this:
export default { ...router } // looks pointless, we know
export default { ...router } // looks pointless, we know
GitHub
🐛 BUG: wrangler dev throws if finding a non-iterable middleware exp...
Which Cloudflare product(s) does this pertain to? Wrangler core What version(s) of the tool(s) are you using? 3.39.0 [Wrangler] What version of Node are you using? 20.10.0 What operating system and...
James
James7mo ago
very nice! Small heads up, the migration guide link is pointing to localhost. I created https://github.com/kwhitley/itty-router/pull/231 for a quick fix 😄 Looks like it should be very quick and easy to update though 😄
Kevin
Kevin7mo ago
Loved the PR - thanks for the catch @James! ❤️
Want results from more Discord servers?
Add your server