--- const { packageName } = Astro.params; import Layout from "@layouts/Layout.astro"; const response = await fetch(new URL("/api/packages/" + packageName, Astro.url)); const assetsJson = await response.json(); --- {assetsJson.error && Unexpected error. Is the name right? } {!assetsJson.error && {assetsJson.background_video && Your browser does not support the video tag. } {assetsJson.backgroundImage && } {!assetsJson.background_video && !assetsJson.backgroundImage && } {assetsJson.type} {assetsJson.title} By: {assetsJson.author} {assetsJson.description} Install Uninstall }
{assetsJson.type}
By: {assetsJson.author}
{assetsJson.description}