From 177875f624cb66cde08cfaf9bcf959959abe90b7 Mon Sep 17 00:00:00 2001 From: Frank Date: Mon, 9 Jun 2025 23:07:29 -0400 Subject: ssr sync --- packages/web/src/pages/s/index.astro | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'packages/web/src/pages/s') diff --git a/packages/web/src/pages/s/index.astro b/packages/web/src/pages/s/index.astro index e39b57000..86b6a452a 100644 --- a/packages/web/src/pages/s/index.astro +++ b/packages/web/src/pages/s/index.astro @@ -8,12 +8,10 @@ import Share from "../../components/Share.tsx"; const apiUrl = import.meta.env.VITE_API_URL; const id = Astro.url.searchParams.get('id') -const res = await fetch(`${apiUrl}/share_messages?id=${id}`); +const res = await fetch(`${apiUrl}/share_data?id=${id}`); const data = await res.json(); -console.log(data.info) - -const title = "Share"; +const title = data.info.title; const encodedTitle = encodeURIComponent( Base64.encode( @@ -58,7 +56,7 @@ const ogImageUrl = `${cardService}/opencode-share/${encodedTitle}.png?cost=${cos ], }} > - +