From e313a5f66953d54bb5ef6b2dd2013944978c233c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Sat, 28 Oct 2023 15:38:16 +0200 Subject: [PATCH] fix: generate '/guide' Open Graph images instead of '/modules' --- src/pages/open-graph/[...path].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/open-graph/[...path].ts b/src/pages/open-graph/[...path].ts index 39b45b58..ab9913e1 100644 --- a/src/pages/open-graph/[...path].ts +++ b/src/pages/open-graph/[...path].ts @@ -6,7 +6,7 @@ const pages = await import.meta.glob('/src/content/**/*.mdx', { eager: true }); // Convert the glob result to remove the `/src/content` prefix Object.keys(pages).forEach(path => { - const newPath = path.replace(/^\/src\/content/, ''); + const newPath = path.replace(/^\/src\/content/, '').replace('/modules', '/guide'); pages[newPath] = pages[path]; delete pages[path]; });