chore(tauri): enable devtools in dev builds only

Removes the explicit "devtools": false from tauri.conf.json so the Tauri
default applies (true in debug, false in release). Auto-opens the inspector
in the setup hook under #[cfg(debug_assertions)] so contributors get DevTools
on `npm run tauri:dev` without right-clicking.

`cargo check --release` confirms the open_devtools() call is hard-stripped
from production binaries — the symbol does not exist in the release build.

Helps debug WebView-side issues (CORS, TLS, axios responses) that the
Rust-only logging mode does not capture.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Psychotoxical
2026-04-25 20:22:08 +02:00
parent 61b53c4448
commit 0f75dada1e
2 changed files with 9 additions and 2 deletions
+1 -2
View File
@@ -23,8 +23,7 @@
"decorations": true,
"transparent": false,
"visible": true,
"dragDropEnabled": false,
"devtools": false
"dragDropEnabled": false
}
],
"security": {