0.0.1 • Published 3 years ago

koa-nextjs-compat v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

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