From 72291bb712f131b4e0e9d040bcb0d86d8129534f Mon Sep 17 00:00:00 2001 From: Gianluca Iavicoli Date: Thu, 16 Jan 2025 18:23:45 +0100 Subject: [PATCH] fix: build error --- components/content/CodeSnippet.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/components/content/CodeSnippet.vue b/components/content/CodeSnippet.vue index f877e8c6..f27c2bb1 100644 --- a/components/content/CodeSnippet.vue +++ b/components/content/CodeSnippet.vue @@ -43,12 +43,9 @@ if (file) { } } else if (url) { try { - const { data } = await useFetch(url, { - key: url, - transform: response => response as string, - }); - if (data.value) { - loadedCode.value = data.value; + const data = await $fetch(url); + if (data) { + loadedCode.value = data as string; } } catch {} }