Skip to content

Commit

Permalink
πŸ› fix(og): fetch image from dist/server
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronlifton committed Jun 10, 2024
1 parent 762ac17 commit 1c64792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/blog/[slug]/og.png.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 1c64792

Please sign in to comment.