fix: revert to vite preview proxy, fix proxy target to cywl-scoring-backend:8876
All checks were successful
Deploy to Server / deploy (push) Successful in 1m43s
All checks were successful
Deploy to Server / deploy (push) Successful in 1m43s
This commit is contained in:
@@ -115,7 +115,10 @@ class ProjectSerializer(serializers.ModelSerializer):
|
||||
}
|
||||
|
||||
def get_display_cover_image(self, obj):
|
||||
request = self.context.get('request')
|
||||
if obj.cover_image:
|
||||
if request:
|
||||
return request.build_absolute_uri(obj.cover_image.url)
|
||||
return obj.cover_image.url
|
||||
return obj.cover_image_url
|
||||
|
||||
|
||||
Reference in New Issue
Block a user