release: freeze demo v1.1.0 2026-10-19
CI/CD Pipeline / Backend Build & Test (push) Canceled after 0s
CI/CD Pipeline / Admin Web Build (push) Canceled after 0s
CI/CD Pipeline / Mini Program Compile Check (push) Canceled after 0s
CI/CD Pipeline / Migration Validation (push) Canceled after 0s
CI/CD Pipeline / Test Shell Guard (Phase 23 Gate) (push) Canceled after 0s
CI/CD Pipeline / UI Contracts (source-structure gates) (push) Canceled after 0s
CI/CD Pipeline / E2E (live stack) (push) Canceled after 0s

This commit is contained in:
WorkBuddy
2026-10-19 20:36:22 +08:00
parent 8b505d9133
commit 69ebf33e18
157 changed files with 21111 additions and 72 deletions
+28
View File
@@ -0,0 +1,28 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
// H5 演示端构建配置。
// - 开发端口 13521(strictPort;host:true 便于手机同局域网访问)
// - /api 代理到本机后端 8085(与 admin-web 同源策略)
// - build base=/h5/:产物部署在 nginx 的 /h5/ 子路径下(见 nginx-h5.conf)
export default defineConfig(({ command }) => ({
plugins: [vue()],
base: command === 'build' ? '/h5/' : '/',
resolve: {
alias: {
'@': resolve(__dirname, 'src'),
},
},
server: {
port: 13521,
strictPort: true,
host: true,
proxy: {
'/api': {
target: 'http://localhost:8085',
changeOrigin: true,
},
},
},
}))