mirror of
https://github.com/hanzoai/agent.git
synced 2026-09-11 21:08:51 +00:00
Consolidate all Hanzo agent infrastructure into one repo: - control-plane/: Go control plane server (was agents-new) - sdk/: Go, Python, TypeScript SDKs - deployments/: Docker, Kubernetes, Helm configs - Dockerfile.sdk: Python SDK image (ghcr.io/hanzoai/agent:latest) - CI builds both SDK + control-plane images No more agentfield — everything is hanzoai/agent.
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
import path from "path"
|
|
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig(({ mode }) => {
|
|
const isDev = mode === 'development'
|
|
const isProd = mode === 'production'
|
|
|
|
// Environment variables with defaults
|
|
const devPort = parseInt(process.env.VITE_DEV_PORT || '5173')
|
|
const apiProxyTarget = process.env.VITE_API_PROXY_TARGET || 'http://localhost:8080'
|
|
const basePath = process.env.VITE_BASE_PATH || (isProd ? '/ui/' : '/')
|
|
|
|
return {
|
|
plugins: [react()],
|
|
base: basePath,
|
|
server: {
|
|
port: devPort,
|
|
host: process.env.VITE_DEV_HOST || 'localhost',
|
|
proxy: isDev ? {
|
|
'/api': {
|
|
target: apiProxyTarget,
|
|
changeOrigin: true,
|
|
secure: false,
|
|
rewrite: (path) => path,
|
|
},
|
|
} : undefined,
|
|
},
|
|
build: {
|
|
outDir: process.env.VITE_BUILD_OUT_DIR || 'dist',
|
|
sourcemap: process.env.VITE_BUILD_SOURCEMAP === 'true',
|
|
},
|
|
define: {
|
|
__APP_VERSION__: JSON.stringify(process.env.npm_package_version || '1.0.0'),
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
}
|
|
})
|