From 9b8779ba089d09b6ace73861759195c8beef8f4f Mon Sep 17 00:00:00 2001 From: Hexiao Zhang <731931282qq@gmail.com> Date: Mon, 16 Dec 2024 15:04:24 +0800 Subject: [PATCH] Update controller.ts (#3404) --- packages/service/common/file/image/controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }) {