Skip to content

Commit

Permalink
feat(be): add img base url for stage server (#1834)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaehyeon1020 authored Jul 19, 2024
1 parent 6864279 commit 3eaa32c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/backend/apps/admin/src/problem/problem.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') +
'/' +
Expand Down

0 comments on commit 3eaa32c

Please sign in to comment.