We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01a7a95 commit 5c62912Copy full SHA for 5c62912
2 files changed
.gitignore
@@ -12,6 +12,8 @@ yarn-error.log
12
# Next build files
13
.next
14
public/build
15
+# Blog RSS feed
16
+public/blog/rss.xml
17
out
18
19
# macOS files
src/lib/rss.ts
@@ -3,7 +3,9 @@ import path from "path";
3
import RSS from "rss";
4
import { BlogPostWithSlug } from "./blog";
5
6
-const SITE_URL = "https://www.prairielearn.com";
+const SITE_URL = process.env.VERCEL_PROJECT_PRODUCTION_URL
7
+ ? `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`
8
+ : "https://www.prairielearn.com";
9
const BLOG_URL = `${SITE_URL}/about/blog`;
10
11
export async function generateRssFeed(
0 commit comments