Closed kilip closed 1 month ago
[x] Create function to prefix url that doesn't have http:// (like: /uploads/image) in their value, by using the value from NEXT_PUBLIC_STRAPI_URL environment variables.
http://
/uploads/image
NEXT_PUBLIC_STRAPI_URL
[x] Replace all src value from Image component by using that function
Image
[x] Add https://res.cloudinary.com in the remotePatterns section of this file
[x] Change seo.imageUrl in this lines to article.metaShareImageUrl https://github.com/paroki/pkrbt/blob/dc226e330b12d746629bc0769fbd28fc92aafc42/apps/web/src/components/article/list.tsx#L28 https://github.com/paroki/pkrbt/blob/dc226e330b12d746629bc0769fbd28fc92aafc42/apps/web/src/components/article-item.tsx#L23
seo.imageUrl
article.metaShareImageUrl
[x] if possible remove this lines https://github.com/paroki/pkrbt/blob/dc226e330b12d746629bc0769fbd28fc92aafc42/apps/web/src/components/article/list.tsx#L22 https://github.com/paroki/pkrbt/blob/dc226e330b12d746629bc0769fbd28fc92aafc42/apps/web/src/components/article-item.tsx#L10
Fixed in #51
[x] Create function to prefix url that doesn't have
http://
(like:/uploads/image
) in their value, by using the value fromNEXT_PUBLIC_STRAPI_URL
environment variables.[x] Replace all src value from
Image
component by using that function[x] Add https://res.cloudinary.com in the remotePatterns section of this file
[x] Change
seo.imageUrl
in this lines toarticle.metaShareImageUrl
https://github.com/paroki/pkrbt/blob/dc226e330b12d746629bc0769fbd28fc92aafc42/apps/web/src/components/article/list.tsx#L28 https://github.com/paroki/pkrbt/blob/dc226e330b12d746629bc0769fbd28fc92aafc42/apps/web/src/components/article-item.tsx#L23[x] if possible remove this lines https://github.com/paroki/pkrbt/blob/dc226e330b12d746629bc0769fbd28fc92aafc42/apps/web/src/components/article/list.tsx#L22 https://github.com/paroki/pkrbt/blob/dc226e330b12d746629bc0769fbd28fc92aafc42/apps/web/src/components/article-item.tsx#L10