Commit 9b8779ba by Hexiao Zhang Committed by GitHub

Update controller.ts (#3404)

parent bfac393a
......@@ -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 }) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment