refactor: Improve Gitea API error reporting and proxy logging, update tab content display, and add Globe texture cleanup.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user