feat: 環境変数からAPIエンドポイントを取得するように変更

This commit is contained in:
2025-06-05 06:22:12 +09:00
committed by Satsuki Akiba (aider)
parent b7f81e53f5
commit 3f3c486f81
3 changed files with 25 additions and 21 deletions

View File

@ -19,7 +19,9 @@ export default function FeedList() {
const fetchFeeds = async () => {
try {
const response = await fetch("/api/feeds");
const response = await fetch(
`${import.meta.env["PODCAST_BASE_URL"]}/api/feeds`,
);
if (!response.ok) {
throw new Error("フィードの取得に失敗しました");
}