diff --git a/app/pages/compare.vue b/app/pages/compare.vue index 46819fb47..9c4a4d2fe 100644 --- a/app/pages/compare.vue +++ b/app/pages/compare.vue @@ -140,7 +140,7 @@ async function exportComparisonDataAsMarkdown() { } defineOgImageComponent('Compare', { - packages: () => packages.value, + packages: () => packages.value.toSorted((a, b) => a.localeCompare(b)), emptyDescription: () => $t('compare.packages.meta_description_empty'), }) diff --git a/nuxt.config.ts b/nuxt.config.ts index d206d0824..b80700e7f 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -129,6 +129,13 @@ export default defineNuxtConfig({ '/:pkg/.well-known/skills/**': { isr: 3600 }, '/:scope/:pkg/.well-known/skills/**': { isr: 3600 }, '/__og-image__/**': getISRConfig(3600), + '/__og-image__/image/compare/**': { + isr: { + expiration: 3600, + passQuery: true, + allowQuery: ['packages', '_query'], + }, + }, '/_avatar/**': { isr: 3600, proxy: 'https://www.gravatar.com/avatar/**' }, '/opensearch.xml': { isr: true }, '/oauth-client-metadata.json': { prerender: true },