refactor: Improve Gitea API error reporting and proxy logging, update tab content display, and add Globe texture cleanup.

This commit is contained in:
2025-12-18 20:35:56 +00:00
parent 8af304ffb3
commit 377d3d0de3
5 changed files with 29 additions and 6 deletions

View File

@@ -9,7 +9,19 @@ export default defineConfig({
'/api/gitea': {
target: 'https://git.mati.ss',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/gitea/, '')
secure: false,
rewrite: (path) => path.replace(/^\/api\/gitea/, ''),
configure: (proxy, _options) => {
proxy.on('error', (err, _req, _res) => {
console.log('proxy error', err);
});
proxy.on('proxyReq', (proxyReq, req, _res) => {
console.log('Sending Request to the Target:', req.method, req.url);
});
proxy.on('proxyRes', (proxyRes, req, _res) => {
console.log('Received Response from the Target:', proxyRes.statusCode, req.url);
});
},
}
}
}