remove file proxy logs
This commit is contained in:
@@ -13,13 +13,6 @@ export const Route = createFileRoute(
|
|||||||
process.env.POCKETBASE_URL || "http://127.0.0.1:8090";
|
process.env.POCKETBASE_URL || "http://127.0.0.1:8090";
|
||||||
const fileUrl = `${pocketbaseUrl}/api/files/${collection}/${recordId}/${file}`;
|
const fileUrl = `${pocketbaseUrl}/api/files/${collection}/${recordId}/${file}`;
|
||||||
|
|
||||||
logger.info("File proxy", {
|
|
||||||
collection,
|
|
||||||
recordId,
|
|
||||||
file,
|
|
||||||
targetUrl: fileUrl,
|
|
||||||
});
|
|
||||||
|
|
||||||
const response = await fetch(fileUrl, {
|
const response = await fetch(fileUrl, {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
headers: {
|
headers: {
|
||||||
@@ -81,12 +74,6 @@ export const Route = createFileRoute(
|
|||||||
"Range, If-None-Match, If-Modified-Since"
|
"Range, If-None-Match, If-Modified-Since"
|
||||||
);
|
);
|
||||||
|
|
||||||
logger.info("File proxy response", {
|
|
||||||
status: response.status,
|
|
||||||
contentType: response.headers.get("content-type"),
|
|
||||||
contentLength: response.headers.get("content-length"),
|
|
||||||
});
|
|
||||||
|
|
||||||
return new Response(body, {
|
return new Response(body, {
|
||||||
status: response.status,
|
status: response.status,
|
||||||
statusText: response.statusText,
|
statusText: response.statusText,
|
||||||
|
|||||||
Reference in New Issue
Block a user