feat: update files for Hono router and SPA support

This commit is contained in:
2025-06-04 08:48:33 +09:00
parent 4db363068d
commit 2ae43314c4
3 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
<!doctype html>
<html lang="ja">
<head>
<base href="/" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ポッドキャスト管理画面</title>

View File

@ -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();

View File

@ -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) {