Relocate /assets/images/partner to static/partners#7268
Relocate /assets/images/partner to static/partners#7268asgharali97 wants to merge 6 commits intolayer5io:masterfrom
Conversation
97975de to
01661a8
Compare
|
@asgharali97 build faling please fix that |
|
Hi @saurabhraghuvanshii, I’ve reviewed the CI logs and the error appears to originate from src/templates/program-multiple.js where a non-null graphQL variable ($program) is receiving a null value during page generation (/programs/null.html) This seems related to existing MDX content under src/collections/programs/ (e.g. hacktoberfest-2023) rather than the partner logo relocation in this PR. I didn’t modify any program templates, collections, or GraphQL logic here. Please let me know if you’d like me to help investigate or address this separately. |
|
@asgharali97 |
|
Hi @kishore08-07, Thank you for inviting. I would love to join |
|
@asgharali97 merge conflicts to address. |
|
@asgharali97 can you resolve merge conflicts? |
|
Hi @saurabhraghuvanshii ,I noticed there’s another PR (#7439) addressing the same issue and it seems to have passing checks. Should I still proceed with updating this PR and resolving conflicts, or has that PR effectively replaced this one? |
|
@asgharali97 yeah also address the suggestion move images to static/images/patners |
|
@asgharali97 are you going to update this? |
|
Hi @saurabhraghuvanshii, Yes, I’m working on updating it. I’ve reset to the latest upstream and am reapplying the changes to align with the current structure. I’ll push an update shortly. |
6577e4a to
1878ab6
Compare
Co-authored-by: Copilot <copilot@github.com> Signed-off-by: Asghar Ali <asgharalifs48@gmail.com>
Signed-off-by: Asghar Ali <asgharalifs48@gmail.com>
Signed-off-by: Asghar Ali <asgharalifs48@gmail.com>
c718230 to
6f2f9f9
Compare
Signed-off-by: Asghar Ali <asgharalifs48@gmail.com>
|
🚀 Preview deployment: https://layer5.io/pr-preview/pr-7268/
|
|
Hi @saurabhraghuvanshii, I’ve addressed the issues and updated the PR. It is now ready for review. Please let me know if any further changes are needed. Thanks! |
| id={partner.name} | ||
| loading="lazy" | ||
| src={imageSrc} | ||
| src={partner.imageSrc} |
There was a problem hiding this comment.
Please Update this to partner.imageLink
| author: Lee Calcote | ||
| thumbnail: "../../../../assets/images/partners/intel-grey.webp" | ||
| darkthumbnail: "../../../../assets/images/partners/intel_white.webp" | ||
|
|
There was a problem hiding this comment.
Why add an extra line? There are several extra lines added throughout the files. I am not sure if its required.
There was a problem hiding this comment.
@thechillbasu Thanks for pointing that out! I’ve cleaned up the unnecessary extra lines and kept the changes minimal. Please take another look.
There was a problem hiding this comment.
Thanks! Actually it wasn't that big of an issue but still, sometimes keeping the code structure more uniform is better. And avoiding unnecessary formatting helps the reviewer focus on the actual necessary changes. Most of the formatting was ok, some were actually good but a few were unnecessary but I guess those were unintentional. Anyways, good work. Thanks for your contribution!
| id={partner.name} | ||
| loading="lazy" | ||
| src={imageSrc} | ||
| src={partner.imageSrc} |
There was a problem hiding this comment.
Shouldn't this be src={partner.imageLink} since the partners-home-data.js uses the key imageLink?
| author: Lee Calcote | ||
| thumbnail: "../../../../assets/images/partners/intel-grey.svg" | ||
| darkthumbnail: "../../../../assets/images/partners/intel_white.svg" | ||
| thumbnail: "/images/partners/intel-grey.svg" |
There was a problem hiding this comment.
Using an absolute path here might break the blog thumbnail. Because our schema explicitly uses @fileByRelativePath for thumbnails(https://github.com/layer5io/layer5/blob/master/gatsby-node.js#L1213), Gatsby's GraphQL needs this to be a relative path so it can process the image as a File node.
There was a problem hiding this comment.
@saurabhraghuvanshii ^^ I’m not sure about this because I can’t build the blog locally either.
There was a problem hiding this comment.
@rishiraj38 , I think you're correct here.
| imageRoute: | ||
| "/company/news/layer5-and-hashicorp-launch-service-mesh-partnership", |
There was a problem hiding this comment.
I think it would be better to add the path in the same line as the key.
Signed-off-by: Asghar Ali <asgharalifs48@gmail.com>
fix: correct image source property in LazyPartnerImage component
18df128 to
a58775f
Compare
| author: Lee Calcote | ||
| thumbnail: "../../../../assets/images/partners/intel-grey.svg" | ||
| darkthumbnail: "../../../../assets/images/partners/intel_white.svg" | ||
| thumbnail: "/images/partners/intel-grey.svg" |
| author: Lee Calcote | ||
| thumbnail: "../../../../assets/images/partners/intel-grey.webp" | ||
| darkthumbnail: "../../../../assets/images/partners/intel_white.webp" | ||
| thumbnail: "/images/partners/intel-grey.webp" |
| thumbnail: "../../../../assets/images/partners/intel-grey.webp" | ||
| darkthumbnail: "../../../../assets/images/partners/intel_white.webp" | ||
| thumbnail: "/images/partners/intel-grey.webp" | ||
| darkthumbnail: "/images/partners/intel_white.webp" |
| thumbnail: "../../../../assets/images/partners/intel-grey.svg" | ||
| darkthumbnail: "../../../../assets/images/partners/intel_white.svg" | ||
| thumbnail: "/images/partners/intel-grey.svg" | ||
| darkthumbnail: "/images/partners/intel_white.svg" |
Signed-off-by: Asghar Ali <asgharalifs48@gmail.com>
|
A few things still need fixing — the old |
@Sbragul26 I think we can't do that because, as discussed, the blog posts, i.e., the mdx files still point to that folder so that they can be processed through the Gatsby Image Pipeline. |
|
@Sbragul26 Thanks for raising this! Based on the earlier discussion around Gatsby’s image processing, the So I’ve kept that folder intact while moving runtime image usage to |

Description
This PR fixes #7256 by relocating
assets/images/partnerstostatic/partnersand updating all references to use absolute static paths.Dynamic image imports were replaced with string-based "/partners/..." paths to align with Gatsby’s static asset handling.
This PR fixes #7256
Notes for Reviewers
static/are used; assets are referenced via absolute paths.Signed commits