-
Notifications
You must be signed in to change notification settings - Fork 17
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 logger serializers not beign preserved on production build #13
Comments
Hey, sorry, I intended to reply but forgot too. The problem is that we build your app for production but
A possible solution for this is to provide a hook, possible a special export in your Let me know what you think about that idea. If we wind up going that way it might make sense to deprecate the |
Hi, thanks for the reply! I saw that note in the readme but wasn't sure it was related to this issue. The way you explained made a lot of sense to me! Maybe the readme note could explicitly mention "options that can be The idea of having a hook for configuring the Fastify options sounds really nice! In that case, deprecating the |
hi @matthewp are there news regarding this? Could we elaborate? |
Not from me. If someone else wants to propose a hook and take on the work I'd happily accept though. |
I'm trying to register logger serializers for Fastify inside
astro.config.mjs
and they work in dev mode, but when I runastro build
, the resultingdist/server/entry.mjs
does not have the serializers configured inside it.I tried to create a minimal example here: https://github.com/luiz/astro-fastify-logger-serializer
The text was updated successfully, but these errors were encountered: