mirror of https://gitlab.com/curben/blog
fix(cf-pages): service binding does not support cf images
This commit is contained in:
parent
fd4c2043a6
commit
a6a4387776
|
@ -6,9 +6,5 @@ export async function onRequestGet (context) {
|
|||
const imageRequest = new Request(imageURL, {
|
||||
headers
|
||||
})
|
||||
// return fetch(imageRequest)
|
||||
|
||||
// CF_IMAGES binds to cf-images worker
|
||||
// configured in the pages dashboard
|
||||
return context.env.CF_IMAGES.fetch(imageRequest)
|
||||
return fetch(imageRequest)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue