Vite · JSON Structure

Vite Inline Config Structure

Top-level configuration structure passed to Vite's programmatic API

Type: object Properties: 0
Build ToolsBundlerDevelopment ServerESMFrontendHot Module ReplacementJavaScriptPlugin APITypeScriptVite

ViteInlineConfig is a JSON Structure definition published by Vite.

Meta-schema:

JSON Structure

Raw ↑
{
  "name": "ViteInlineConfig",
  "description": "Top-level configuration structure passed to Vite's programmatic API",
  "type": "object",
  "fields": [
    {"name": "root", "type": "string", "required": false, "description": "Project root directory"},
    {"name": "base", "type": "string", "required": false, "description": "Base public path"},
    {"name": "mode", "type": "string", "required": false, "description": "Build mode (development|production|test)"},
    {"name": "define", "type": "object", "required": false, "description": "Global constant replacements"},
    {"name": "plugins", "type": "array<Plugin>", "required": false, "description": "Vite plugin array"},
    {"name": "publicDir", "type": "string", "required": false, "description": "Static assets directory"},
    {"name": "cacheDir", "type": "string", "required": false, "description": "Cache directory"},
    {
      "name": "server",
      "type": "ServerOptions",
      "required": false,
      "description": "Dev server options",
      "fields": [
        {"name": "host", "type": "string|boolean", "required": false, "description": "Listen address"},
        {"name": "port", "type": "integer", "required": false, "description": "Server port", "default": 5173},
        {"name": "strictPort", "type": "boolean", "required": false, "description": "Fail if port in use"},
        {"name": "open", "type": "boolean|string", "required": false, "description": "Auto-open browser"},
        {"name": "cors", "type": "boolean|object", "required": false, "description": "CORS config"},
        {"name": "hmr", "type": "boolean|object", "required": false, "description": "HMR config"}
      ]
    },
    {
      "name": "build",
      "type": "BuildOptions",
      "required": false,
      "description": "Production build options",
      "fields": [
        {"name": "target", "type": "string|array<string>", "required": false, "description": "Browser targets"},
        {"name": "outDir", "type": "string", "required": false, "description": "Output directory", "default": "dist"},
        {"name": "assetsDir", "type": "string", "required": false, "description": "Assets subdirectory", "default": "assets"},
        {"name": "sourcemap", "type": "boolean|string", "required": false, "description": "Source map generation"},
        {"name": "minify", "type": "boolean|string", "required": false, "description": "Minification setting"},
        {"name": "emptyOutDir", "type": "boolean", "required": false, "description": "Empty outDir before build"},
        {"name": "copyPublicDir", "type": "boolean", "required": false, "description": "Copy public dir to outDir"}
      ]
    },
    {
      "name": "preview",
      "type": "PreviewOptions",
      "required": false,
      "description": "Preview server options",
      "fields": [
        {"name": "host", "type": "string|boolean", "required": false},
        {"name": "port", "type": "integer", "required": false, "default": 4173},
        {"name": "strictPort", "type": "boolean", "required": false},
        {"name": "open", "type": "boolean|string", "required": false},
        {"name": "cors", "type": "boolean|object", "required": false}
      ]
    },
    {"name": "envDir", "type": "string", "required": false, "description": "Directory to load .env files from"},
    {"name": "envPrefix", "type": "string|array<string>", "required": false, "description": "Env variable prefix"}
  ]
}

Work with this as data

Every JSON Structure here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Structure
curl "https://apis.io/api/v1/json-structures/vite-inline-config-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.