fix: rebuild MES as compilable go-zero+ent backend (renamed bj_power_mes), restore 3 workstation projects from pristine original, align naming; all Go projects go build clean
This commit is contained in:
@@ -22,27 +22,20 @@ export default defineConfig(({ command, mode }) => {
|
||||
enable: command === 'serve' && useMock,
|
||||
}),
|
||||
],
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
api: 'legacy', // 使用 legacy API 兼容旧版 sass
|
||||
},
|
||||
},
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: env.VITE_PORT,
|
||||
open: true,
|
||||
cors: true,
|
||||
hmr: {
|
||||
host: 'localhost', // 修复 HMR WebSocket 连接问题
|
||||
},
|
||||
hmr: true,
|
||||
proxy: {
|
||||
'^/(api/*|sse$|uploads/*)': {
|
||||
'/api': {
|
||||
target: 'http://127.0.0.1:8888',
|
||||
changeOrigin: true
|
||||
},
|
||||
'/uploads': {
|
||||
target: 'http://127.0.0.1:8888',
|
||||
ws: false,
|
||||
changeOrigin: true
|
||||
// rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user