Skip to content

Commit 6567930

Browse files
committed
fix: return production URL for RSS feed in production environment
1 parent a28d531 commit 6567930

File tree

1 file changed

+4
-0
lines changed
  • apps/web/src/app/(landing)/blog/rss.xml

1 file changed

+4
-0
lines changed

apps/web/src/app/(landing)/blog/rss.xml/route.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import { type ArticleWithSlug, getAllArticles } from "@/lib/blog";
22
import RSS from "rss";
33

44
function getSiteUrl(request: Request): string {
5+
if (process.env.NODE_ENV === "production") {
6+
return "https://www.evolu.dev";
7+
}
8+
59
const url = new URL(request.url);
610
return `${url.protocol}//${url.host}`;
711
}

0 commit comments

Comments
 (0)