Skip to content

Commit

Permalink
ci(test): test 1
Browse files Browse the repository at this point in the history
  • Loading branch information
ThornWalli committed Sep 14, 2023
1 parent 61b914f commit f17818d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/tmpl/plugin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ async function getImageSize (src) {
let url = src;
if (isNitroPrerender) {
url = url.replace(useRequestURL().origin, '');
console.log('url',url)
}
const blob = await useRequestFetch()(url);
const { imageMeta } = await import('image-meta').then(
module => module.default || module
);
);console.log(URL.createObjectURL(blob))
const data = await fetch(URL.createObjectURL(blob)).then(async res =>
Buffer.from(await res.arrayBuffer())
);
Expand Down

0 comments on commit f17818d

Please sign in to comment.