Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 546 Bytes

README.md

File metadata and controls

35 lines (21 loc) · 546 Bytes

Nextjs Koa Compat

Overview

Use Koa middlewares with Nextjs api routes.

Getting started

yarn add koa-nextjs-compat

Usage

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

Contributing

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

License

MIT