-
I'm running a universal example(koa2 + react) with consolidate as template resolver. Currently I'm facing a trouble when trying to webpack-build node.js server side code when I'm using `target: 'node'…
-
本文分为四个部分,分别对应源码的四个文件。
- [koa源码分析(一) - application.js](https://github.com/brunoyang/blog/issues/5)
- [koa源码分析(二) - context.js](https://github.com/brunoyang/blog/issues/6)
- [koa源码分析(三) - request.js](ht…
-
Are you planning to support koa@2?
```
koa deprecated Support for generators will been removed in v3. See the documentation for examples of how to convert old middleware https://github.com/koajs/koa/…
-
[首发地址](https://github.com/GeoffZhu/geoffzhu.github.io/issues/12)
> 周五组内同学讨论搞一些好玩的东西,有人提到了类似『5分钟实现koa』,『100行实现react』的创意,仔细想了以后,5分钟实现koa并非不能实现,遂有了这篇博客。
## 准备
先打开koa官网,随意找出了一个代表koa核心功能的的demo就可以,…
-
If there is a middleware added after `router.allowedMethods()` that invokes `ctx.throw`, it prevents `allowedMethods` from responding to `OPTIONS` requests for legitimate URLs.
## Experiment 1
R…
-
### What version of Hono are you using?
4.6.3
### What runtime/platform is your app running on?
AWS lambda node20
### What steps can reproduce the bug?
Having an api gateway that calls …
-
I'm coming back to a project after a while where I used koa-range to be able to scrub video when using web dev server.
Using the middleware worked great a while back. However, now when updated to t…
-
-
_**Update:** on Linux server it happens too._
I'm trying to figure out how to use koa-static (in SPA) properly.
First I just had put it in front of the other middleware, hoping that when it find…
-
like regular middleware. might be needed to support https://github.com/koajs/path-match/issues/14
still think it's an anti-pattern MOST of the time since your logic should be refactored into function…