修改端口9001为9002

This commit is contained in:
xdragon 2024-09-05 15:33:38 +08:00
parent 8497f652bc
commit a5cf527e8d
47 changed files with 109 additions and 109 deletions

View file

@ -8,7 +8,7 @@ import {LoadingScreen} from "./utils/LoadingScreen.tsx";
import {Trans, useTranslation} from "react-i18next";
import {Cable, Construction, Crown, NotepadText, Wrench, PhoneCall} from "lucide-react";
const WS_URL = import.meta.env.DEV? 'http://localhost:9001' : ''
const WS_URL = import.meta.env.DEV? 'http://localhost:9002' : ''
export const App = ()=> {
const setSettings = useStore(state => state.setSettings);
const {t} = useTranslation()

View file

@ -21,16 +21,16 @@ export default defineConfig({
server:{
proxy: {
'/socket.io/*': {
target: 'http://localhost:9001',
target: 'http://localhost:9002',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
},
'/admin-auth/': {
target: 'http://localhost:9001',
target: 'http://localhost:9002',
changeOrigin: true,
},
'/stats': {
target: 'http://localhost:9001',
target: 'http://localhost:9002',
changeOrigin: true,
}
}