Skip to content

Commit 0e1f88f

Browse files
committed
chore: remove console.log
1 parent dab9985 commit 0e1f88f

File tree

1 file changed

+1
-6
lines changed
  • plugin/src/templates/edge

1 file changed

+1
-6
lines changed

plugin/src/templates/edge/ipx.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,16 @@ const defaultFormat = "webp"
1313
// deno-lint-ignore require-await
1414
const handler = async (req: Request, context: Context) => {
1515
const { searchParams } = new URL(req.url);
16-
console.log({imageconfig, headers: req.headers})
1716
const accept = new Accepts(req.headers);
1817
const { formats = [defaultFormat] } = imageconfig;
1918
if (formats.length === 0) {
2019
formats.push(defaultFormat);
2120
}
22-
let type = accept.types(formats)
23-
console.log('Accepted types:', type)
24-
type ||= defaultFormat;
21+
let type = accept.types(formats) || defaultFormat;
2522
if(Array.isArray(type)) {
2623
type = type[0];
2724
}
2825

29-
console.log('Resolved type to:', type)
3026

3127
const source = searchParams.get("url");
3228
const width = searchParams.get("w");
@@ -48,7 +44,6 @@ const handler = async (req: Request, context: Context) => {
4844
modifiers.push(`f_${type}`);
4945
}
5046
const target = `/_ipx/${modifiers.join(",")}/${encodeURIComponent(source)}`;
51-
console.log('Loading image from', target)
5247
return context.rewrite(
5348
target,
5449
);

0 commit comments

Comments
 (0)