Skip to content

fastify missing middleware #210

@pathnirvana

Description

@pathnirvana

fastify.use(require('prerender-node') .set('prerenderServiceUrl', 'http://localhost:3000/') .set('prerenderToken', 'YOUR_TOKEN') .blacklisted('^/tipitaka-query'))

gives the error

throw new FST_ERR_MISSING_MIDDLEWARE() ^ FastifyError [Error]: You must register a plugin for handling middlewares, visit fastify.io/docs/latest/Middleware/ for more info. at Object.use (/var/www/html/tipitaka.lk/server/node_modules/fastify/fastify.js:493:11)

Any ideas how to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions