From 0218094d1cafcdc83638e99aa26fb9c6ff1269bd Mon Sep 17 00:00:00 2001 From: Bryant Gillespie Date: Fri, 22 Mar 2024 12:43:58 -0400 Subject: [PATCH] Add RSS feed to prerender (#147) --- modules/prerender.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/prerender.ts b/modules/prerender.ts index 025c6a21..7c050a02 100644 --- a/modules/prerender.ts +++ b/modules/prerender.ts @@ -68,6 +68,9 @@ export default defineNuxtModule({ permalinks.push(...episodes.map((ep) => `/tv/${ep.season.show.slug}/${ep.slug}`)); permalinks.push(...events.map((ev) => `/tv/live/${ev.slug}`)); + // Add RSS feed to prerender + permalinks.push('/rss.xml'); + for (const link of permalinks) { extendRouteRules(withoutTrailingSlash(link), { prerender: true,