add fix config
Some checks failed
Sync to CNB / sync (push) Has been cancelled

This commit is contained in:
熊潇 2025-05-18 19:07:04 +08:00
parent 263fba9600
commit ceaf2ec21f
5 changed files with 268 additions and 467 deletions

View File

@ -23,16 +23,16 @@
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@kevisual/router": "0.0.14",
"@kevisual/router": "0.0.20",
"@mui/material": "^7.1.0",
"clsx": "^2.1.1",
"dayjs": "^1.11.13",
"lodash-es": "^4.17.21",
"lucide-react": "^0.509.0",
"lucide-react": "^0.511.0",
"nanoid": "^5.1.5",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-hook-form": "^7.56.3",
"react-hook-form": "^7.56.4",
"react-router": "^7.6.0",
"react-router-dom": "^7.6.0",
"react-toastify": "^11.0.5",
@ -43,20 +43,20 @@
},
"devDependencies": {
"@kevisual/components": "workspace:*",
"@kevisual/query": "0.0.17",
"@kevisual/query": "0.0.18",
"@kevisual/types": "^0.0.10",
"@tailwindcss/vite": "^4.1.6",
"@types/node": "^22.15.17",
"@types/react": "^19.1.3",
"@types/react-dom": "^19.1.3",
"@tailwindcss/vite": "^4.1.7",
"@types/node": "^22.15.18",
"@types/react": "^19.1.4",
"@types/react-dom": "^19.1.5",
"@vitejs/plugin-basic-ssl": "^2.0.0",
"@vitejs/plugin-react": "^4.4.1",
"commander": "^13.1.0",
"commander": "^14.0.0",
"dotenv": "^16.5.0",
"inquire": "^0.4.8",
"tailwindcss": "^4.1.6",
"tailwindcss": "^4.1.7",
"typescript": "^5.8.3",
"vite": "^6.3.5"
},
"packageManager": "pnpm@10.10.0"
"packageManager": "pnpm@10.11.0"
}

@ -1 +1 @@
Subproject commit bdf6243bd9d09174f37b883e4094e8e7f97ada37
Subproject commit ba10b5337701848e0a8d150a1235a08e2398eca3

690
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,5 @@
packages:
- 'submodules/*'
- 'packages/*'
- submodules/*
- packages/*
onlyBuiltDependencies:
- '@tailwindcss/oxide'

View File

@ -14,24 +14,17 @@ const isCNB = process.env.CNB === 'true';
if (isDev && !isCNB) {
plugins.push(basicSsl());
}
let target = process.env.VITE_API_URL || 'http://localhost:3000';
let target = process.env.VITE_API_URL || 'http://localhost:51015';
const apiProxy = { target: target, changeOrigin: true, ws: true, rewriteWsOrigin: true, secure: false, cookieDomainRewrite: 'localhost' };
let proxy = {
'/root/center/': {
target: `${target}/root/center/`,
},
'/root/system-lib/': {
target: `${target}/root/system-lib/`,
},
'/user/login/': {
target: `${target}/user/login/`,
},
'/api': {
target: target,
changeOrigin: true,
ws: true,
rewriteWsOrigin: true,
cookieDomainRewrite: 'localhost',
},
'/api': apiProxy,
'/client': apiProxy,
};
/**
* @see https://vitejs.dev/config/