ShipThing 依赖 Next.js 内置的 Metadata API 来处理大部分 SEO 需求。具体来说,Documentation Index
Fetch the complete documentation index at: https://docs.shipthing.com/llms.txt
Use this file to discover all available pages before exploring further.
@repo/seo 包提供了一个 createMetadata 函数,可用于为页面生成元数据。例如:
page.tsx
metadata 对象类似,但 createMetadata 函数会将您的元数据与我们的默认元数据进行深度合并,使您只需自定义需要的元数据。例如,指定页面封面图片也变得更加容易:
page.tsx