From 1c64792c69f269eaf9b242ff2e5ff1d9d019c251 Mon Sep 17 00:00:00 2001 From: Aaron Lifton Date: Mon, 10 Jun 2024 15:32:09 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(og):=20fetch=20image=20from?= =?UTF-8?q?=20dist/server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/blog/[slug]/og.png.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/blog/[slug]/og.png.ts b/src/pages/blog/[slug]/og.png.ts index e5cbe98..52d4ce6 100644 --- a/src/pages/blog/[slug]/og.png.ts +++ b/src/pages/blog/[slug]/og.png.ts @@ -36,7 +36,7 @@ export async function GET({ props }: Props) { ? path.resolve( post.data.cover.src.replace(/\?.*/, "").replace("/@fs", ""), ) - : path.resolve(post.data.cover.src.replace("/", "dist/client/")), + : path.resolve(post.data.cover.src.replace("/", "dist/server/")), ); // const __dirname = path.dirname(fileURLToPath(import.meta.url));