Skip to content

Commit

Permalink
Add Readme
Browse files Browse the repository at this point in the history
Signed-off-by: Haris Sulaiman <[email protected]>
  • Loading branch information
harisvsulaiman committed Jan 30, 2021
1 parent ae6b3a5 commit 741a230
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
## Nextjs Koa Compat

### Overview

Use Koa middlewares with Nextjs api routes.

### Getting started

```
yarn add koa-nextjs-compat
```

### Usage

```js
import KoaCompat from "koa-nextjs-compat";

const app = new KoaCompat().use((ctx, next) => {
ctx.body = "Hello world! 👋🏽";
});

export default app.handle();
```

### Example

See [Shopify Nextjs Starter](https://github.com/harisvsulaiman/shopify-nextjs-template)

### Contributing

We're open to all community contributions! If you'd like to contribute in any way.

### License

MIT

0 comments on commit 741a230

Please sign in to comment.