feat: add local sharing and containerized web/server layout

This commit is contained in:
lofyer
2026-10-01 12:01:44 +08:00
parent 599a0a6645
commit c9d5e63276
51 changed files with 2212 additions and 233 deletions
+19
View File
@@ -0,0 +1,19 @@
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import { fileURLToPath } from 'node:url'
import { defineConfig } from 'vite'
export default defineConfig({
root: fileURLToPath(new URL('.', import.meta.url)),
plugins: [react(), tailwindcss()],
build: {
outDir: '../dist/web',
emptyOutDir: true
},
server: {
port: 5174,
proxy: {
'/api': 'http://127.0.0.1:8787'
}
}
})