[examples/custom-server-fastify] Fix ts(2341) (#11844)

* Fix ts(2341)

Property 'handleRequest' is private and only accessible within class 'Server'.ts(2341)

* Update server.js

Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
This commit is contained in:
MicrochipQ 2020-04-13 14:41:38 +03:00 committed by GitHub
parent dcb0a656f5
commit ccefab76dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ fastify.register((fastify, opts, next) => {
.then(() => { .then(() => {
if (dev) { if (dev) {
fastify.get('/_next/*', (req, reply) => { fastify.get('/_next/*', (req, reply) => {
return app.handleRequest(req.req, reply.res).then(() => { return handle(req.req, reply.res).then(() => {
reply.sent = true reply.sent = true
}) })
}) })