mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 10:55:57 +00:00
* feat(create-app): add OpenGraph Image to template * format, add `ssr.external` * add waku, fix template margin * add next.config.mjs patch * rewrite takumi docs page * fix webp suffix * sync create-app * sync all `getPageImage` * remove waku `rollupOptions` * sync * format * fix meta property * fix typo * create `fumadocs-ui/og/takumi` entry * add util `replace`, `replaceAll` * update fs import * format * only create `og.ts` for React Router * update Waku template to use source.ts
6 lines
143 B
TypeScript
6 lines
143 B
TypeScript
export function getPageImagePath(slugs: string[]) {
|
|
const segments = [...slugs, 'image.webp'];
|
|
|
|
return `/og/docs/${segments.join('/')}`;
|
|
}
|