feat: unify service port and add GitHub packages workflow
Build Packages / Test (push) Has been cancelled
Build Packages / Build macOS package (push) Has been cancelled
Build Packages / Build Linux package (push) Has been cancelled
Build Packages / Build Windows package (push) Has been cancelled
Build Packages / Publish GitHub Release (push) Has been cancelled

This commit is contained in:
2026-08-05 15:13:29 +08:00
parent 56db1cc642
commit 6f07849a53
7 changed files with 318 additions and 367 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
const apiPort = process.env.API_PORT || '1551';
const servicePort = process.env.PORT || '1552';
export default defineConfig({
plugins: [vue()],
@@ -17,14 +17,14 @@ export default defineConfig({
},
},
server: {
port: 1552,
port: 5173,
proxy: {
'/api': {
target: `http://localhost:${apiPort}`,
target: `http://localhost:${servicePort}`,
changeOrigin: true,
},
'/uploads': {
target: `http://localhost:${apiPort}`,
target: `http://localhost:${servicePort}`,
changeOrigin: true,
},
},