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):
|
def get_display_cover_image(self, obj):
|
||||||
|
request = self.context.get('request')
|
||||||
if obj.cover_image:
|
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
|
||||||
return obj.cover_image_url
|
return obj.cover_image_url
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,5 @@ services:
|
|||||||
container_name: cywl-scoring-frontend
|
container_name: cywl-scoring-frontend
|
||||||
ports:
|
ports:
|
||||||
- "8890:8890"
|
- "8890:8890"
|
||||||
environment:
|
|
||||||
- VITE_API_URL=http://localhost:8876/api
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
|
|||||||
Reference in New Issue
Block a user