网站和推流制作完成

This commit is contained in:
2025-08-08 16:07:49 +08:00
parent 3f67c118de
commit 7894b155dd
87 changed files with 26936 additions and 73 deletions

18
EyeVue/api/rss.ts Normal file
View File

@@ -0,0 +1,18 @@
// Vercel Serverless Function
export default async function handler(res) {
try {
const rssUrl = process.env.RSS_URL;
if (!rssUrl) {
throw new Error("RSS_URL environment variable is not defined");
}
const response = await fetch(rssUrl);
const data = await response.text();
res.setHeader("Access-Control-Allow-Origin", "*");
res.setHeader("Content-Type", "application/xml");
res.status(200).send(data);
} catch (error) {
res.status(500).json({ error: "Failed to fetch RSS" });
}
}