Skip to content

Commit

Permalink
allow disabling devtools overlay using environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
brw committed Nov 3, 2024
1 parent b9c263e commit 7f2cca3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_SOLID_DEVTOOLS=true
4 changes: 3 additions & 1 deletion src/renderer/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import "@renderer/css/theme.css";
import { render } from "solid-js/web";
import { attachDevtoolsOverlay } from "@solid-devtools/overlay";

attachDevtoolsOverlay();
if (import.meta.env.VITE_SOLID_DEVTOOLS !== "false") {
attachDevtoolsOverlay();
}

render(() => <App />, document.getElementById("root") as HTMLElement);

0 comments on commit 7f2cca3

Please sign in to comment.