fix(frontend): eliminate all tsconfig and vite proxy build deprecation warnings

This commit is contained in:
2026-07-26 15:01:39 +09:00
parent 4695de8783
commit 0b3a52748f
2 changed files with 6 additions and 6 deletions
+3 -4
View File
@@ -24,11 +24,10 @@
"noImplicitReturns": true,
/* Path Aliases */
"baseUrl": ".",
"paths": {
"@/*": ["src/*"],
"@shared/*": ["src/shared/*"],
"@modules/*": ["src/modules/*"]
"@/*": ["./src/*"],
"@shared/*": ["./src/shared/*"],
"@modules/*": ["./src/modules/*"]
}
},
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"]
+3 -2
View File
@@ -26,8 +26,9 @@ export default defineConfig({
changeOrigin: true,
secure: false,
configure: (proxy) => {
proxy.on('error', (_err, _req, res: any) => {
if (res && !res.headersSent) {
proxy.on('error', (...args: any[]) => {
const res = args[2];
if (res && typeof res.writeHead === 'function' && !res.headersSent) {
res.writeHead(200, { 'Content-Type': 'application/json' });
res.end(JSON.stringify({ status: 'OFFLINE_MOCK_ACTIVE', data: [], versions: [] }));
}