diff --git a/packages/service/common/file/image/controller.ts b/packages/service/common/file/image/controller.ts index 0c9110882d9b..3a8e6f2990a2 100644 --- a/packages/service/common/file/image/controller.ts +++ b/packages/service/common/file/image/controller.ts @@ -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 }) {