koba04 / swr-devtools

A DevTool for SWR
https://swr-devtools.vercel.app
MIT License
217 stars 3 forks source link

How to disable SWR-devtools on Production #111

Open theodorosploumis opened 1 year ago

theodorosploumis commented 1 year ago

It seems that SWR-devtools (with swr 2.x version) is also working for Production builds. Is there any option/idea for how to disable it for Production?

Thanks.

koba04 commented 1 year ago

Currently, there is no way to disable it. The latest version of SWRDevTools only sends events while opening the DevTools panel, so it doesn't affect the performance of your application. But I'll consider providing it. Thank you!

shuding commented 1 year ago

Like React DevTools, specific features are available for prod builds and it won't affect your visitors at all.

CarlosAmaral commented 1 year ago

Please provide this. Thank you.