Unverified Commit ccefab76 authored by MicrochipQ's avatar MicrochipQ Committed by GitHub

[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: 's avatarTim Neutkens <tim@timneutkens.nl>
parent dcb0a656
...@@ -12,7 +12,7 @@ fastify.register((fastify, opts, next) => { ...@@ -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
}) })
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment