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
feat: add custom undici instance #201
Conversation
const instance = Fastify() | ||
t.teardown(instance.close.bind(instance)) | ||
instance.register(From, { | ||
base: `http://localhost:${target.address().port}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless undici adds a way to get the target url, the base has to be specified in the options. Is that ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's ok for now, however we might want to change it in undici! Maybe a PR there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that makes sense 😉
Pull Request Test Coverage Report for Build 1294483022
💛 - Coveralls |
Pull Request Test Coverage Report for Build 1294911813
💛 - Coveralls |
I went and changed it anyway 😉 |
1dfe774
to
5e88852
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Checklist
npm run test
andnpm run benchmark
and the Code of conduct
Closes #192