Skip to content

Commit

Permalink
Fix url for fetchAndDownloadImageBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
samad-yar-khan committed Dec 14, 2023
1 parent f00dc04 commit f37a96d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/api/get_cover/public/[username].ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const fetchAndDownloadImageBuffer = async (
.map((image) => {
const file = extractFilenameWithoutExtension(image.fileName);
const domain = process.env.NEXTAUTH_URL;
return `${domain}/public/shared/${username}/${file}`;
return `${domain}/shared/public/${username}/${file}`;
});

const getCoverImage = await createCoverUsingVercel(username, images);
Expand Down

0 comments on commit f37a96d

Please sign in to comment.