mirror of https://gitlab.com/curben/blog
10 lines
347 B
JavaScript
10 lines
347 B
JavaScript
|
export async function onRequestGet(context) {
|
||
|
// const {pathname} = new URL(context.request.url)
|
||
|
// const imageURL = new URL(pathname, 'https://mdleom.com')
|
||
|
// const imageRequest = new Request(imageURL, {
|
||
|
// headers: context.request.headers
|
||
|
// })
|
||
|
// return fetch(imageRequest)
|
||
|
return context.env.CF_IMAGES.fetch(context.request)
|
||
|
}
|