Files
shadowdao e40d55b2f2 chore(builder): point dev proxy at current test server
192.168.1.105 was decommissioned; local npm run dev save/load now
proxies /api to the current test server (whp-al10-test, .148).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-12 14:59:42 -07:00

31 lines
638 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
export default defineConfig({
plugins: [react()],
base: './',
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
build: {
outDir: 'dist',
rollupOptions: {
output: {
entryFileNames: 'js/editor.js',
chunkFileNames: 'js/[name].js',
assetFileNames: (info) =>
info.name?.endsWith('.css') ? 'css/editor.css' : 'assets/[name][extname]',
},
},
},
server: {
port: 5173,
proxy: {
'/api': 'http://192.168.1.148:8080',
},
},
})