chore: update static file paths and content type

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

No files matched your search

+1
View File
@@ -4,3 +4,4 @@ dist
.env
data
feed_urls.txt
public
+2 -2
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();
});