onyx-tasks/apps/tauri/src-tauri/tauri.conf.json
Tristan Michael 3c11539f02 fix: harden Tauri backend — replace unwrap panics, fix watcher lifecycle, strengthen CSP
Replace all .unwrap() calls on repo with repo_ref()/repo_mut() helpers
that return error strings instead of panicking. Stop the old file watcher
before starting a new one on workspace switch to prevent accumulation.
Add object-src and base-uri directives to CSP.
2026-04-02 09:37:43 -07:00

42 lines
995 B
JSON

{
"productName": "Onyx",
"version": "0.1.0",
"identifier": "com.onyx.app",
"build": {
"frontendDist": "../dist",
"devUrl": "http://localhost:1422",
"beforeDevCommand": "npm run dev",
"beforeBuildCommand": "npm run build"
},
"app": {
"withGlobalTauri": false,
"windows": [
{
"title": "Onyx",
"width": 400,
"height": 700,
"minWidth": 320,
"minHeight": 500,
"resizable": true,
"decorations": false,
"transparent": true
}
],
"security": {
"csp": "default-src 'self'; style-src 'self' 'unsafe-inline'; font-src 'self' https://fonts.gstatic.com; connect-src ipc: http://ipc.localhost; object-src 'none'; base-uri 'self'"
}
},
"bundle": {
"active": true,
"targets": ["appimage", "deb"],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
]
},
"plugins": {}
}