Skip to content

Commit ed6c255

Browse files
committed
Remove debug logging from API request middleware
1 parent c233b85 commit ed6c255

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

client/src/middleware.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,12 @@ const API_SERVER_URL = process.env.API_SERVER_URL || 'http://localhost:5100';
55

66
// Middleware to handle API requests
77
export const onRequest = defineMiddleware(async (context, next) => {
8-
console.log('Request URL:', context.request.url);
98

109
// Guard clause: if not an API request, pass through to regular Astro handling
1110
if (!context.request.url.includes('/api/')) {
1211
return await next();
1312
}
1413

15-
// API request handling
16-
console.log('Forwarding request to server:', API_SERVER_URL);
17-
1814
const url = new URL(context.request.url);
1915
const apiPath = url.pathname + url.search;
2016

0 commit comments

Comments
 (0)