Repository navigation
Remove the share images' unread .alt.txt files - #1043
Merged
Merged
Conversation
Next reads opengraph-image.alt.txt and twitter-image.alt.txt as metadata only beside the image in src/app. Since the images moved to public/ (#898), the alt text has come from SHARE_IMAGE.alt, and the two files were served as stray static files that only seo.test.ts read, to check they matched it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016YZ9STi3of9KWzDGRP3CNY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016YZ9STi3of9KWzDGRP3CNY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Next reads
opengraph-image.alt.txtandtwitter-image.alt.txtas metadata only when they sit beside the image insrc/app. Since #898 moved the share images topublic/, the alt text has come fromSHARE_IMAGE.altinsrc/lib/seo.ts(passed throughSHARE_IMAGESin the root shell andpageMetadata). The two.txtfiles were left behind as stray static files. The only thing that read them wasseo.test.ts, checking that they matchedSHARE_IMAGE.alt.Changes
public/opengraph-image.alt.txtandpublic/twitter-image.alt.txt.seo.test.tsstill checks each PNG's width and height on disk, but no longer reads the alt files.seo.tsandscripts/generate-og-image.mjs. The generator's comment now says that nothing checks the alt text, so whoever changes the words on the image has to updateSHARE_IMAGE.alttoo.Checks
pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm test: all pass (244 files, 3515 tests).pnpm dev: the landing page'sog:image:altandtwitter:image:altstill give the full alt text,/opengraph-image.pngreturns 200, and/opengraph-image.alt.txtnow returns 404. No screenshots, because nothing on any page looks different./code-review: found no correctness issues. Its three minor notes (CHANGELOG entry, the generator comment's wording, a reminder about keeping the alt text in sync) are addressed in the second commit.🤖 Generated with Claude Code
https://claude.ai/code/session_016YZ9STi3of9KWzDGRP3CNY