When to use this skill
ALWAYS use this skill when the user mentions:
- Editing or understanding tauri.conf.json
- Config changes from Tauri v1 to v2
- CSP configuration or platform-specific config sections
Trigger phrases include:
- "tauri.conf.json", "tauri config", "CSP", "configuration", "build config"
How to use this skill
- Understand the config structure -- key sections of
tauri.conf.json:{ "productName": "My App", "version": "1.0.0", "identifier": "com.example.myapp", "build": { "devUrl": "http://localhost:5173", "frontendDist": "../dist" }, "app": { "windows": [{ "label": "main", "title": "My App", "width": 1024, "height": 768 }], "security": { "csp": "default-src 'self'; script-src 'self'" } }, "plugins": {} } - Configure CSP in
app.security.cspto restrict content loading sources - Add plugin configuration under the
pluginskey (e.g., updater endpoints, CLI schema) - Platform-specific overrides go in the appropriate config sections for Android/iOS
- v2 migration notes:
taurikey renamed toapp,allowlistreplaced with capabilities system, plugins moved topluginskey - Validate config by running
npm run tauri devwhich reports config errors on startup
Outputs
- tauri.conf.json structure overview with key sections
- CSP configuration for content security
- v1 to v2 config migration mapping
References
- https://v2.tauri.app/reference/config/
- https://v2.tauri.app/security/csp/
Keywords
tauri config, tauri.conf.json, CSP, build configuration, app settings