Files
Kane WangandGitHub 955b918ee5 feat(create-app): add OpenGraph Image to template (#3023)
* 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
2026-02-22 16:49:24 +08:00

6 lines
143 B
TypeScript

export function getPageImagePath(slugs: string[]) {
const segments = [...slugs, 'image.webp'];
return `/og/docs/${segments.join('/')}`;
}