Skip to content

Commit

Permalink
Update controller.ts (#3404)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghx0905 authored Dec 16, 2024
1 parent bfac393 commit 9b8779b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/service/common/file/image/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export async function uploadMongoImg({
shareId
});

return `${process.env.FE_DOMAIN || ''}${imageBaseUrl}${String(_id)}.${extension}`;
return `${process.env.FE_DOMAIN || ''}${process.env.NEXT_PUBLIC_BASE_URL || ''}${imageBaseUrl}${String(_id)}.${extension}`;
}

export async function readMongoImg({ id }: { id: string }) {
Expand Down

0 comments on commit 9b8779b

Please sign in to comment.