update
Some checks failed
deploy / deploy (push) Has been cancelled

This commit is contained in:
toom1996
2026-08-26 19:42:10 +08:00
parent d64a046f82
commit eee2265e15
29 changed files with 337 additions and 2506 deletions

View File

@ -0,0 +1,15 @@
---
import Layout from "@/layouts/Layout.astro"
import Item from "@/components/Item.astro"
import { getSsrArticle } from "@/lib/api"
// 按需 SSR:服务端按 ?id= 取数并渲染(保留既有 /en/items/:id 链接,无需改动其他页面)
export const prerender = false
const { id } = Astro.params
const { article, error } = await getSsrArticle(id, Astro.currentLocale)
---
<Layout>
<Item article={article} error={error} />
</Layout>