chore: update static file paths and content type

This commit is contained in:
2025-06-04 13:58:47 +09:00
committed by Satsuki Akiba (aider)
parent 9cc3e1f66b
commit 1603b2d95f
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ dist
.env
data
feed_urls.txt
public

View File

@ -20,7 +20,7 @@ db.exec(fs.readFileSync(path.join(projectRoot, "schema.sql"), "utf-8"));
// 静的ファイルパスの設定
const frontendBuildDir = path.join(projectRoot, "frontend", "dist");
const podcastAudioDir = path.join(projectRoot, "static", "podcast_audio");
const podcastAudioDir = path.join(projectRoot, "public", "podcast_audio");
const generalPublicDir = path.join(projectRoot, "public");
const app = new Hono();
@ -83,7 +83,7 @@ app.get("/podcast_audio/*", async (c) => {
const file = Bun.file(audioFilePath);
if (await file.exists()) {
const blob = await file.arrayBuffer();
return c.body(blob, 200, { "Content-Type": "audio/mpeg" });
return c.body(blob, 200, { "Content-Type": "audio/wav" });
}
return c.notFound();
});