mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
Update controller.ts (#3404)
This commit is contained in:
@@ -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 }) {
|
||||||
|
Reference in New Issue
Block a user