{
    "$schema": "https://json-schema.org/schema",
    "version": 2,
    "cli": "nx",
    "title": "Vite Preview Server",
    "description": "Preview Server for Vite.",
    "continuous": true,
    "type": "object",
    "x-deprecated": "The `@nx/vite:preview-server` executor is deprecated and will be removed in Nx v24. Run `nx g @nx/vite:convert-to-inferred` to migrate to the `@nx/vite/plugin` inferred plugin. See https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.",
    "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."
        },
        "proxyConfig": {
            "type": "string",
            "description": "Path to the proxy configuration file.",
            "x-completion-type": "file"
        },
        "staticFilePath": {
            "type": "string",
            "description": "Path where the build artifacts are located. If not provided then it will be infered from the buildTarget executor options as outputPath",
            "x-completion-type": "directory"
        },
        "watch": {
            "type": "boolean",
            "description": "Enable re-building when files change. If not specified, watch mode will be enabled by default.",
            "default": true
        }
    },
    "definitions": {},
    "required": ["buildTarget"],
    "examplesFile": "../../../docs/preview-server-examples.md"
}
