dev tools remove it from rerfine project
i dont want to see dev tools of refine visible on the project
2 Replies
Hi @jakshire01. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
If you want to remove the devtools from your refine project, you can do so by deleting the
@refinedev/devtools
dependency from your project. This was suggested as a temporary solution in a Github issue (https://github.com/refinedev/refine/issues/5211) and confirmed to work by a user in another Github issue (https://github.com/refinedev/refine/issues/5215).
If you want to prevent the devtools-server from running, you can use the parameter npm run refine dev -- --devtools=false
as suggested in the same Github issue (https://github.com/refinedev/refine/issues/5211).
Please note that the React Query Devtools are removed from the @refinedev/core
and the devtoolConfig
prop is no longer supported for the configuration of the devtools. You can use the @tanstack/react-query-devtools
in your app directly to use the devtools. For more information, please check out this documentation (https://refine.dev/docs/core/refine-component/#devtoolconfig).
If you want to hide the code viewer and the warning components, you can use the hideCodeViewerInProduction
prop. This will only work in production mode. In development mode, the code viewer and the information block will always be visible. For more information, please check out this Discord support thread (https://discord.com/channels/837692625737613362/1134251552513732659).
Please note that the refine devtools are designed to help you debug and develop your refine apps. They are not meant to be used in production. They are meant to be used in development mode to help you generate the code for your components. For more information, please check out this documentation (https://refine.dev/docs/guides-concepts/general-concepts/#devtools).
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@418995770205929473> kapa.ai is still learning and improving, please let us know how it did by reacting below