Files
codex-proxy-rs/frontend/vite.config.ts
T
zyycnandCodex 29c8b679ba refactor(architecture): complete dependency boundary audit
Harden WebSocket ownership and capacity semantics, split the transport into focused modules, and move admin queries, quota observations, and upstream adapters behind explicit consumer-owned ports.

Parse frontend payloads at the API boundary, centralize SSE and store ownership, add latest-request-wins queries with inferred view types, and enforce dependency direction through lint and AST tests.

Co-authored-by: Codex <noreply@openai.com>
2026-07-17 09:03:33 +08:00

49 lines
1.0 KiB
TypeScript

import { fileURLToPath, URL } from 'node:url'
import tailwindcss from '@tailwindcss/vite'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'
export default defineConfig({
base: '/',
plugins: [vue(), tailwindcss()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
port: 5173,
proxy: {
'/dev': {
target: 'http://127.0.0.1:8080',
changeOrigin: true,
rewrite: path => path.replace(/^\/dev/, ''),
},
},
},
build: {
outDir: 'dist',
assetsDir: 'assets',
chunkSizeWarningLimit: 600,
rolldownOptions: {
checks: {
invalidAnnotation: false,
},
output: {
codeSplitting: {
groups: [
{
name: 'echarts',
test: /node_modules\/echarts/,
},
{
name: 'zrender',
test: /node_modules\/zrender/,
},
],
},
},
},
},
})