From 43b0ddb4ad3ff47e1ac4a407c176fa17ecdc555f Mon Sep 17 00:00:00 2001 From: Emmanuel Gautier Date: Sun, 24 Sep 2023 16:54:41 +0200 Subject: [PATCH] feat(@galactiks/astro-integration): remove astrojs rss package --- packages/adapters/astro/package.json | 2 -- packages/adapters/astro/src/rss.mts | 17 ----------------- 2 files changed, 19 deletions(-) delete mode 100644 packages/adapters/astro/src/rss.mts diff --git a/packages/adapters/astro/package.json b/packages/adapters/astro/package.json index 2beaecbf..e9a68106 100644 --- a/packages/adapters/astro/package.json +++ b/packages/adapters/astro/package.json @@ -46,7 +46,6 @@ "@astrojs/partytown": "2.0.0", "@astrojs/prefetch": "0.4.0", "@astrojs/react": "3.0.2", - "@astrojs/rss": "3.0.0", "@astrojs/sitemap": "3.0.0", "astro": "3.1.2", "astro-critters": "2.0.11", @@ -56,7 +55,6 @@ "@astrojs/partytown": "2.0.0", "@astrojs/prefetch": "0.4.0", "@astrojs/react": "3.0.2", - "@astrojs/rss": "3.0.0", "@astrojs/sitemap": "3.0.0", "@types/react": "18.2.22", "@types/react-dom": "18.2.7", diff --git a/packages/adapters/astro/src/rss.mts b/packages/adapters/astro/src/rss.mts deleted file mode 100644 index ebfd55ae..00000000 --- a/packages/adapters/astro/src/rss.mts +++ /dev/null @@ -1,17 +0,0 @@ -import type { APIContext } from 'astro'; -import rss from '@astrojs/rss'; - -export function getRSS(context: APIContext) { - return rss({ - // `` field in output xml - title: 'Buzz’s Blog', - // `<description>` field in output xml - description: 'A humble Astronaut’s guide to the stars', - // Pull in your project "site" from the endpoint context - // https://docs.astro.build/en/reference/api-reference/#contextsite - site: context.site ? context.site.toString() : '', - // Array of `<item>`s in output xml - // See "Generating items" section for examples using content collections and glob imports - items: [], - }); -}