Skip to content

harisvsulaiman/koa-nextjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Use Koa middlewares with Nextjs api routes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published