Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fastify missing middleware #210

Open
pathnirvana opened this issue Aug 14, 2021 · 0 comments
Open

fastify missing middleware #210

pathnirvana opened this issue Aug 14, 2021 · 0 comments

Comments

@pathnirvana
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant