Skip to content

Commit 677afdc

Browse files
Adebesin-Cellclaude
andcommitted
fix: sort packages in OG image to normalize cache keys
Sorting ensures ?packages=zustand,redux and ?packages=redux,zustand produce the same OG image URL and share one ISR cache entry. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2dd81c2 commit 677afdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/pages/compare.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ async function exportComparisonDataAsMarkdown() {
140140
}
141141
142142
defineOgImageComponent('Compare', {
143-
packages: () => packages.value,
143+
packages: () => [...packages.value].sort(),
144144
emptyDescription: () => $t('compare.packages.meta_description_empty'),
145145
})
146146

0 commit comments

Comments
 (0)