-
Middleware like koa-mount has a need to identify Koa application objects, and behave differently if found ( [example](https://github.com/koajs/mount/blob/master/index.js#L36) ).
What would be the s…
-
Hi there! I hate to pile on with this particular issue, but after reading through the other tickets dealing with it I'm still having some trouble with "serverRenderer is not a function" errors.
As …
-
# [koa middleware](https://github.com/koajs/koa/wiki)
## [koa](https://github.com/koajs/koa)
```javascript
import * as koa from 'koa';
const app = new koa();
app.use((ctx) => {
ctx.body = …
-
## DESC
### ENV
OS Platform:windows 11
Node.js Version: Node.js 16
ThinkJS Version: 3.2.13
### code
```js
// your code here
```
### error message
```
// your error message h…
-
I have the following code:
var path = require('path');
var koa = require('koa');
var app = module.exports = koa();
var webpack = require('webpack');
var webpackConfig = require('../webpack/webpack.c…
-
First: Thank you, this is an amazing effort and a great package.
Second: I'm pretty sure I'm missing something, I'm learning and getting async/await into my head. Working with promises since AFAIK …
-
i `m set a regexp to router.use(), got a error:
> Error: `(.*)`: `middleware` must be a function, not `object`
> at Layer. (...\node_modules\koa-router\lib\layer.js:38:13)
> at Array.forEach…
-
_**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…
-
In the installation section of the README:
```
The oauth2-server module is framework-agnostic but there are several officially supported wrappers available for popular HTTP server frameworks such as…
-
## Bug report
### Required System information
- Node.js version: 18.16.1
- NPM version: 9.8.0
- Strapi version: 4.13.7
- Database: mysql2
- Operating system: darwin-x64
- Is y…