We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a28d531 commit 6567930Copy full SHA for 6567930
apps/web/src/app/(landing)/blog/rss.xml/route.ts
@@ -2,6 +2,10 @@ import { type ArticleWithSlug, getAllArticles } from "@/lib/blog";
2
import RSS from "rss";
3
4
function getSiteUrl(request: Request): string {
5
+ if (process.env.NODE_ENV === "production") {
6
+ return "https://www.evolu.dev";
7
+ }
8
+
9
const url = new URL(request.url);
10
return `${url.protocol}//${url.host}`;
11
}
0 commit comments