SiteUrl will now generate a default if one doesn't exist

This commit is contained in:
Justin Walrath 2025-05-12 09:21:46 -04:00
parent 982d6ac661
commit 1b729df778

View File

@ -44,6 +44,7 @@ export const prepareStreamItem = (stream?: StreamDto) => {
...stream, ...stream,
imageUrl, imageUrl,
feedUrl: `${process.env.NEXT_PUBLIC_API_BASE_URL}/api/${stream.id}/feed`, feedUrl: `${process.env.NEXT_PUBLIC_API_BASE_URL}/api/${stream.id}/feed`,
siteUrl: stream.siteUrl ?? `${process.env.NEXT_PUBLIC_API_BASE_URL}/${stream.id}/podcasts`
}; };
}; };