Skip to content

Commit

Permalink
Upgrade koa router in example (vercel#10469)
Browse files Browse the repository at this point in the history
* Upgrade koa router

* Change koa import
  • Loading branch information
Nainterceptor authored and chibicode committed Feb 11, 2020
1 parent bd07730 commit a498288
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/custom-server-koa/package.json
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"cross-env": "^5.2.0",
"koa": "^2.0.1",
"koa-router": "^7.1.0",
"@koa/router": "^8.0.7",
"next": "latest",
"react": "^16.7.0",
"react-dom": "^16.7.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server-koa/server.js
@@ -1,6 +1,6 @@
const Koa = require('koa')
const next = require('next')
const Router = require('koa-router')
const Router = require('@koa/router')

const port = parseInt(process.env.PORT, 10) || 3000
const dev = process.env.NODE_ENV !== 'production'
Expand Down

0 comments on commit a498288

Please sign in to comment.