diff --git a/src/pages/[lang]/catalog/[...page].astro b/src/pages/[lang]/catalog/[...page].astro index c3f99bc1..dfd3b407 100644 --- a/src/pages/[lang]/catalog/[...page].astro +++ b/src/pages/[lang]/catalog/[...page].astro @@ -8,7 +8,11 @@ const t = useTranslations(lang); const { page } = Astro.params; -const response = await fetch(new URL("/api/catalog-assets/", Astro.url)); +let response: any = []; +try { + response = await fetch(new URL("/api/catalog-assets/", Astro.url)); +} +catch (err: any) { console.log('Error occured' + err) } //console.log(new URL("/api/catalog-assets/", Astro.url)); const assetsJson = await response.json();