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-Static #408

Closed
Timwestberg opened this issue May 2, 2022 · 1 comment · Fixed by #409
Closed

Fastify-Static #408

Timwestberg opened this issue May 2, 2022 · 1 comment · Fixed by #409

Comments

@Timwestberg
Copy link

The current version of Fastify-Static package within the Fastify Adapter has become deprecated and is throwing non-process blocking warnings.

I attempted to create a PR with a fix but I do not have permission to submit it. I pulled the package in locally within my application and made the following updates to the package as a custom module to resolve the warning.

Please review and make the below changes so @bull-board/fastify can be served with the latest supported packages.

In package.json, please swap the dependency for fastify-static from:
"fastify-static": "^4.6.1",

to

"@fastify/static": "5.0.0",

Within the file: packages/fastify/src/fastifyAdpater.ts (Line: 11) , needs to be updated from:
import fastifyStatic from 'fastify/static';

to

import fastifyStatic from '@fastify/static';

Once these steps have been taken the fastify-static deprecated warning should no longer pop up.

@felixmosh
Copy link
Owner

Thank for notifying me 🙏
I'll update it tomorrow asap.

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

Successfully merging a pull request may close this issue.

2 participants