diff --git a/src/pages/video/[name].astro b/src/pages/video/[name].astro index 3f112bb..18e67d6 100644 --- a/src/pages/video/[name].astro +++ b/src/pages/video/[name].astro @@ -14,14 +14,13 @@ if (!metadata) return new Response(null, { status: 404 }); const { title, description, width, height, duration } = metadata; const basePath = import.meta.env.BASE_URL.replace(/\/$/, ''); const streamPath = `${basePath}/video/${encodeURIComponent(video.name)}/stream`; -const streamUrl = new URL(streamPath, Astro.url); --- - - {streamUrl.href.startsWith('https://') && } + + {streamPath.startsWith('https://') && } {width && } {height && }