From 2ae43314c46010d8d7dc987c4c7cdadb1cdc19e0 Mon Sep 17 00:00:00 2001 From: "Satsuki Akiba (aider)" Date: Wed, 4 Jun 2025 08:48:33 +0900 Subject: [PATCH] feat: update files for Hono router and SPA support --- frontend/public/index.html | 1 + services/podcast.ts | 2 +- services/tts.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/public/index.html b/frontend/public/index.html index 63bc379..f125466 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -1,6 +1,7 @@ + ポッドキャスト管理画面 diff --git a/services/podcast.ts b/services/podcast.ts index 106e3ef..25cc91f 100644 --- a/services/podcast.ts +++ b/services/podcast.ts @@ -13,7 +13,7 @@ export async function updatePodcastRSS() { let itemsXml = ""; for (const ep of episodes) { - const fileUrl = `https://your-domain.com/podcast_audio/${path.basename( + const fileUrl = `https://your-domain.com/static/podcast_audio/${path.basename( ep.audioPath, )}`; const pubDate = new Date(ep.pubDate).toUTCString(); diff --git a/services/tts.ts b/services/tts.ts index fe4fe82..d8a8059 100644 --- a/services/tts.ts +++ b/services/tts.ts @@ -25,7 +25,7 @@ export async function generateTTS( if (!fs.existsSync(outputDir)) { fs.mkdirSync(outputDir, { recursive: true }); } - const filePath = path.join(outputDir, `${itemId}.mp3`); + const filePath = path.resolve(outputDir, `${itemId}.mp3`); const chunks: Uint8Array[] = []; for await (const chunk of response.AudioStream as any) {