We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
first of all THANK YOU for such an awesome plugin! Is there any possibility to disabled it conditionally? I tried
// plutins.ts 'strapi-plugin-graphql-logging': { enabled: true, }
and something similar in middlewares.ts but no luck.
middlewares.ts
Regards!
The text was updated successfully, but these errors were encountered:
Hi Nicolae!
Thank you very much for testing my plugin. The correct syntax to disable it would be:
// plugins.ts export default ({ env }) => ({ 'graphql-logging': { enabled: false, }, });
or simply:
// plugins.ts export default ({ env }) => ({ 'graphql-logging': false });
Finally, to only disable it in production, you can do this trick:
export default ({ env }) => ({ 'graphql-logging': env('NODE_ENV') !== 'production', });
I hope this is helpful.
Disabling debugging in production is a very good idea, and I think this should be the default behaviour for the future releases of this plugin.
Sorry, something went wrong.
tpimh
No branches or pull requests
Hello,
first of all THANK YOU for such an awesome plugin!
Is there any possibility to disabled it conditionally? I tried
and something similar in
middlewares.ts
but no luck.Regards!
The text was updated successfully, but these errors were encountered: