更新 .gitignore 文件以包含环境变量,修改多个视图以使用环境变量加载 RSS 源和 YAML 文件

This commit is contained in:
2025-03-12 12:03:00 +08:00
parent 706788161e
commit 55000e7ff7
4 changed files with 11 additions and 8 deletions

View File

@ -161,7 +161,8 @@ const cleanupGitHubCalendar = () => {
};
const fetchRSSFeed = async () => {
const rssUrl = "https://blog.kisechan.space/atom.xml";
const rssUrl = import.meta.env.VITE_RSS_FEED_URL;
console.log("Fetching RSS Feed:", rssUrl);
try {
const response = await fetch(rssUrl);
const str = await response.text();