Update controller.ts (#3404)
This commit is contained in:
parent
bfac393ab1
commit
9b8779ba08
@ -35,7 +35,7 @@ export async function uploadMongoImg({
|
|||||||
shareId
|
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 }) {
|
export async function readMongoImg({ id }: { id: string }) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user