Skip to content

Conversation

@leecalcote
Copy link
Member

@leecalcote leecalcote commented Dec 4, 2025

Signed-off-by: Lee Calcote lee.calcote@layer5.io

Description

A new make target: check-images reports if any <GatsbyImage /> lacking an explicit image prop (exit code 1 when issues are found).

To narrow the scan to a folder with make check-images -- src/pages/community. This script is useful as a guardrail.

…andling

Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
… dedicated runtime chunk plus explicit framework and vendor cache groups

Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
…Data

Signed-off-by: Lee Calcote <lee.calcote@layer5.io>
@saurabhraghuvanshii
Copy link
Contributor

Build failing

@leecalcote
Copy link
Member Author

Build failing

Clearly, it is. This sort of feedback isn't helpful.

@leecalcote leecalcote removed the request for review from saurabhraghuvanshii December 4, 2025 17:39
Signed-off-by: Lee Calcote <leecalcote@gmail.com>
return renderBasicImage({ publicURL, alt, imgStyle, ...rest });
}

if (!childImageSharp?.gatsbyImageData) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (!childImageSharp?.gatsbyImageData) {
const gatsbyImageData = childImageSharp.gatsbyImageData;
if (!gatsbyImageData) {

return renderBasicImage({ publicURL, alt, imgStyle, ...rest });
}

const gatsbyImageData = childImageSharp.gatsbyImageData;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const gatsbyImageData = childImageSharp.gatsbyImageData;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants