Skip to content
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

Library tool won't load unless I pass dangerouslyForceRunInProduction to true #282

Open
skalidindi opened this issue Feb 26, 2025 · 0 comments

Comments

@skalidindi
Copy link

skalidindi commented Feb 26, 2025

It took me a while to get this toolbar to show up on my app. It turns out I had to turn on dangerouslyForceRunInProduction to true even for is my local dev. I have also tried passing NODE_ENV=development (even though Vite should be doing this already) but to no avail.

I have the following code the top of main...

import { scan } from 'react-scan';

scan({
  enabled: true,
  dangerouslyForceRunInProduction: true,
  trackUnnecessaryRenders: true,
});

I would like this to run without needing dangerouslyForceRunInProduction. Note, this app runs on a url which is not local host and locally on Vite.

@skalidindi skalidindi changed the title How do I customize check for production? Allow custom logic for when is an app is production vs local dev Feb 26, 2025
@skalidindi skalidindi changed the title Allow custom logic for when is an app is production vs local dev Allow custom logic for when is an app is production vs local dev when deciding whether to enable or disable Feb 26, 2025
@skalidindi skalidindi reopened this Feb 26, 2025
@skalidindi skalidindi changed the title Allow custom logic for when is an app is production vs local dev when deciding whether to enable or disable Library tool won't load unless I pass dangerouslyForceRunInProduction to true Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant