Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harisvsulaiman/koa-nextjs
Use Koa middlewares with Nextjs api routes.
https://github.com/harisvsulaiman/koa-nextjs
Last synced: 18 days ago
JSON representation
Use Koa middlewares with Nextjs api routes.
- Host: GitHub
- URL: https://github.com/harisvsulaiman/koa-nextjs
- Owner: harisvsulaiman
- License: mit
- Created: 2021-01-29T06:32:02.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-24T04:47:40.000Z (almost 2 years ago)
- Last Synced: 2024-11-17T01:07:35.091Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 2.12 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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