diff options
| author | iza <59828082+izadoesdev@users.noreply.github.com> | 2025-07-24 14:45:41 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-24 14:45:41 +0300 |
| commit | 7b840e9b4e198212eb34861c21469b2215157914 (patch) | |
| tree | 0da56e7801c22ca476516185ecde8937ada49f95 /apps/web/src/app/rss.xml | |
| parent | 33acf2497dd2c8314f5afb5bf386f81f6d2d0857 (diff) | |
| parent | cf039e48a94c5ab17c1193f02705e9f8baa370c6 (diff) | |
| download | opencut-7b840e9b4e198212eb34861c21469b2215157914.tar.gz | |
Merge pull request #450 from OpenCut-app/fix/wrong-import
fix: import site info from correct source
Diffstat (limited to 'apps/web/src/app/rss.xml')
| -rw-r--r-- | apps/web/src/app/rss.xml/route.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/web/src/app/rss.xml/route.ts b/apps/web/src/app/rss.xml/route.ts index b16bd856..1ed63994 100644 --- a/apps/web/src/app/rss.xml/route.ts +++ b/apps/web/src/app/rss.xml/route.ts @@ -1,16 +1,16 @@ import { Feed } from 'feed'; import { getPosts } from '@/lib/blog-query'; -import { SITE_INFO } from '../metadata'; +import { SITE_INFO, SITE_URL } from '@/constants/site'; export async function GET() { try { const { posts } = await getPosts(); const feed = new Feed({ - title: 'OpenCut Blog', + title: `${SITE_INFO.title} Blog`, description: SITE_INFO.description, - id: `${SITE_INFO.url}`, - link: `${SITE_INFO.url}/blog/`, + id: `${SITE_URL}`, + link: `${SITE_URL}/blog/`, language: 'en', image: `${SITE_INFO.openGraphImage}`, favicon: `${SITE_INFO.favicon}`, @@ -22,8 +22,8 @@ export async function GET() { for (const post of posts) { feed.addItem({ title: post.title, - id: `${SITE_INFO.url}/blog/${post.slug}`, - link: `${SITE_INFO.url}/blog/${post.slug}`, + id: `${SITE_URL}/blog/${post.slug}`, + link: `${SITE_URL}/blog/${post.slug}`, description: post.description, author: post.authors.map((author) => ({ name: author.name, |
