{
  "version": 2,
  "outputCapture": "direct-nodejs",
  "title": "Vite Dev Server",
  "cli": "nx",
  "description": "Starts a dev server using Vite.",
  "type": "object",
  "presets": [
    {
      "name": "Default minimum setup",
      "keys": ["buildTarget"]
    },
    {
      "name": "Using a Different Port",
      "keys": ["buildTarget", "port"]
    }
  ],
  "properties": {
    "buildTarget": {
      "type": "string",
      "description": "Target which builds the application. Only used to retrieve the configuration as the dev-server does not build the code.",
      "x-priority": "important"
    },
    "buildLibsFromSource": {
      "type": "boolean",
      "description": "Read buildable libraries from source instead of building them separately.",
      "default": true
    },
    "proxyConfig": {
      "type": "string",
      "description": "Path to the proxy configuration file.",
      "x-completion-type": "file"
    },
    "port": {
      "type": "number",
      "description": "Port to listen on.",
      "x-priority": "important"
    },
    "host": {
      "description": "Specify which IP addresses the server should listen on.",
      "oneOf": [
        {
          "type": "boolean"
        },
        {
          "type": "string"
        }
      ]
    },
    "https": {
      "oneOf": [
        {
          "type": "boolean"
        },
        {
          "type": "object"
        }
      ],
      "description": "Serve using HTTPS. https://vitejs.dev/config/server-options.html#server-https"
    },
    "hmr": {
      "description": "Enable hot module replacement. For more options, use the 'hmr' option in the Vite configuration file.",
      "type": "boolean"
    },
    "open": {
      "description": "Automatically open the app in the browser on server start. When the value is a string, it will be used as the URL's pathname.",
      "oneOf": [
        {
          "type": "boolean"
        },
        {
          "type": "string"
        }
      ]
    },
    "cors": {
      "description": "Configure CORS for the dev server.",
      "type": "boolean"
    },
    "logLevel": {
      "type": "string",
      "description": "Adjust console output verbosity.",
      "enum": ["info", "warn", "error", "silent"]
    },
    "mode": {
      "type": "string",
      "description": "Mode to run the server in."
    },
    "clearScreen": {
      "description": "Set to false to prevent Vite from clearing the terminal screen when logging certain messages.",
      "type": "boolean"
    },
    "force": {
      "description": "Force the optimizer to ignore the cache and re-bundle",
      "type": "boolean"
    }
  },
  "definitions": {},
  "required": ["buildTarget"],
  "examplesFile": "../../../docs/dev-server-examples.md"
}
