feat: add Category and Product serializers with CDN URL transformation logic
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 32s
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 32s
This commit is contained in:
parent
0ae8173fa8
commit
2b30ce914a
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ from rest_framework import serializers
|
|||
from .models import Category, Product
|
||||
import re
|
||||
|
||||
CDN_DOMAIN = "https://d1zlxfmkt834bg.cloudfront.net"
|
||||
CDN_DOMAIN = "https://dc23efa04hj6d.cloudfront.net"
|
||||
|
||||
def get_cdn_url(image_url):
|
||||
if not image_url:
|
||||
|
|
|
|||
Loading…
Reference in a new issue