{
  "$schema": "https://tauri.app/config-schema",
  "package": {
    "productName": "ShopifyAI Desktop",
    "version": "0.1.0"
  },
  "build": {
    "beforeDevCommand": "",
    "beforeBuildCommand": "",
    "distDir": "ui-dist"
  },
  "tauri": {
    "windows": [
      {
        "title": "ShopifyAI",
        "width": 1280,
        "height": 800,
        "resizable": true,
        "fullscreen": false
      }
    ],
    "allowlist": {
      "all": false,
      "shell": {
        "all": false,
        "execute": true,
        "sidecar": true,
        "scope": []
      },
      "fs": {
        "all": false,
        "readFile": true,
        "writeFile": true,
        "scope": [
          "$APPDATA/**",
          "$APPLOCALDATA/**",
          "$RESOURCE/**",
          "$APPCONFIG/**"
        ]
      },
      "http": {
        "all": false,
        "request": true,
        "scope": [
          "https://**",
          "http://**"
        ]
      },
      "path": {
        "all": true
      }
    },
    "bundle": {
      "active": true,
      "identifier": "com.shopifyai.desktop",
      "targets": ["nsis", "msi"],
      "windows": {
        "wix": null,
        "webviewInstallMode": {
          "type": "embedBootstrapper"
        }
      }
    },
    "security": {
      "csp": "default-src 'self' https: http: data:; script-src 'self' https: 'unsafe-inline'; style-src 'self' https: 'unsafe-inline'; img-src 'self' https: data:; font-src 'self' https: data:; connect-src 'self' https: http: ws: wss:; media-src 'self' https:; child-src 'self'; frame-src 'self' https:" 
    }
  }
}
