diff --git a/apps/backend/apps/admin/src/problem/problem.service.ts b/apps/backend/apps/admin/src/problem/problem.service.ts index ace1169e62..ea880c5d2c 100644 --- a/apps/backend/apps/admin/src/problem/problem.service.ts +++ b/apps/backend/apps/admin/src/problem/problem.service.ts @@ -286,9 +286,14 @@ export class ProblemService { ) } + const baseUrlForImage = + this.config.get('APP_ENV') == 'stage' + ? 'https://stage.codedang.com/bucket' + : this.config.get('STORAGE_BUCKET_ENDPOINT_URL') + return { src: - this.config.get('STORAGE_BUCKET_ENDPOINT_URL') + + baseUrlForImage + '/' + this.config.get('MEDIA_BUCKET_NAME') + '/' +