Skip to content

Commit 856fa4e

Browse files
committed
more logs
1 parent 6542144 commit 856fa4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/routes/content/media.js

+2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ export default async function handler(ctx) {
1919
const {
2020
env,
2121
url,
22+
log,
2223
config: { org, site },
2324
} = ctx;
2425

2526
const filename = url.pathname.split('/').pop();
2627
const key = `${org}/${site}/media/${filename}`;
28+
log.debug('fetching media: ', key);
2729
const resp = await env.CATALOG_BUCKET.get(key);
2830
if (!resp) {
2931
return errorResponse(404, 'File not found');

0 commit comments

Comments
 (0)