create very rough UI

This commit is contained in:
2026-06-03 00:31:35 +00:00
parent 2efe08b247
commit b379b7a5af
9 changed files with 1157 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import { defineConfig } from 'vite'
import { resolve } from 'path'
const API_URL = process.env.API_URL ?? 'http://192.168.56.1:3000'
export default defineConfig({
server: {
port: 5173,
proxy: {
'/api': {
target: API_URL,
rewrite: (path) => path.replace(/^\/api/, ''),
},
},
},
build: {
outDir: 'dist',
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
login: resolve(__dirname, 'login.html'),
},
},
},
})