Skip to content

Commit 5c62912

Browse files
committed
add to .gitignore
1 parent 01a7a95 commit 5c62912

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ yarn-error.log
1212
# Next build files
1313
.next
1414
public/build
15+
# Blog RSS feed
16+
public/blog/rss.xml
1517
out
1618

1719
# macOS files

src/lib/rss.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import path from "path";
33
import RSS from "rss";
44
import { BlogPostWithSlug } from "./blog";
55

6-
const SITE_URL = "https://www.prairielearn.com";
6+
const SITE_URL = process.env.VERCEL_PROJECT_PRODUCTION_URL
7+
? `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`
8+
: "https://www.prairielearn.com";
79
const BLOG_URL = `${SITE_URL}/about/blog`;
810

911
export async function generateRssFeed(

0 commit comments

Comments
 (0)