Skip to content

Commit 731df7c

Browse files
Correct file path in duende-og-image.tsx
Adjusted the file path definition to fix potential issues with cross-platform compatibility. This ensures the script correctly locates the background image within the project directory.
1 parent 90dfe83 commit 731df7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/duende-og-image.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { twj } = await import("tw-to-css");
44
import fs from "node:fs";
55
import path from "node:path";
66

7-
const filePath = path.join(process.cwd(), "src/assets/duende-og-bg.png");
7+
const filePath = path.join(process.cwd(), "src", "assets", "duende-og-bg.png");
88
const imageBase64 = `data:image/png;base64,${fs.readFileSync(filePath).toString("base64")}`;
99

1010
export async function duendeOpenGraphImage({

0 commit comments

Comments
 (0)