1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Fix micro readme example (#4827)

I found mistake on readme
This commit is contained in:
S. Suzuki 2018-07-24 20:55:13 +09:00 committed by Tim Neutkens
parent 75476a9136
commit 6bd24fd9e2

View file

@ -848,7 +848,7 @@ const micro = require('micro')
const dev = process.env.NODE_ENV !== 'production'
const app = next({ dev })
const handle = app.getRequestHandler()
const handleNextRequests = app.getRequestHandler()
app.prepare().then(() => {
const server = micro((req, res) => {