Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/changelog/feed.xml.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ function buildRssItem(item: ChangelogWithDeps, baseUrl: string): string {
const packageName = SHORT_NAMES[item.packageName] || item.packageName;
const title = `${packageName} ${item.version}`;
const releaseId = `${packageName}@${item.version}`;
const releaseUrl = `${baseUrl}?release=${encodeURIComponent(releaseId)}`;
const guidUrl = `${baseUrl}#${releaseId}`;

const releaseUrl = `${baseUrl}#${encodeURIComponent(releaseId)}`;
const guidUrl = releaseUrl;
const pubDate = formatRssDate(item.record.timestamp);
const isoReleaseDate = new Date(item.record.timestamp).toISOString().split('T')[0];
const featureCount = features.length;
Expand Down Expand Up @@ -128,8 +129,7 @@ export default async function changelogRssHandler(
? productsParam.split(',').map(p => shortNameToPackage[p.trim()] || p.trim()).filter(Boolean)
: Object.keys(changelogs); // Default to all packages if none specified

const changelogPath = url.pathname.replace(/\/api\/changelog-rss$/, '/docs/realm/changelog');
const baseUrl = `${url.protocol}//${url.host}${changelogPath}`;
const baseUrl = 'https://redocly.com/docs/realm/changelog';

const resolved: ChangelogWithDeps[] = [];

Expand Down