Koa + Next.js is it possible to not wrap with app.prepare promise? #11800
Unanswered
ctrlaltdylan
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to initialize Next without wrapping the entire Koa server in it's
.prepare()
statement?Without a synchronous
server
variable, it's not possible to integrate with an integration test suite like Mocha + mocha-http or supertest.Official Documentation links:
https://github.com/zeit/next.js/blob/canary/examples/custom-server-koa/server.js
https://github.com/zeit/next.js/blob/982e880f9afb96f6f9bcda06c11f212cf85a655d/examples/custom-server-koa/server.js#L10
Beta Was this translation helpful? Give feedback.
All reactions