Replies: 1 comment 2 replies
-
Hi @vyvian1712
with env var: CDN_URL=https://cdn.my-website.com In my case I'm using the AWS S3 to upload. You can inject AwsS3Service anywhere. Good luck! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guy,
With your current structure.
And in my case,
users
table has an avatar column with path ex:/images/example.jpg.
When data is responded to, I want to transform it into
https://cdn.my-website.com/images/example.jpg
.What is the best solution to this problem?
Thanks!
Your answer is to use process.env means using apiConfigService.
But if I want to use it for all user entities.
I was forced to put it in user.dto class, and in DTO I can't use apiConfigService.
Is there a more optimal solution?
Beta Was this translation helpful? Give feedback.
All reactions