This commit is contained in:
2025-06-08 22:37:17 +09:00
parent 2a81654d16
commit 265e604c00
3 changed files with 40 additions and 1 deletions

View File

@ -14,6 +14,15 @@ try {
process.exit(1);
}
// Regenerate static files on startup
try {
const { regenerateStartupFiles } = await import("./services/podcast.js");
await regenerateStartupFiles();
} catch (error) {
console.error("Failed to regenerate startup files:", error);
// Don't exit - the server can still work without the regenerated files
}
const app = new Hono();
// 静的ファイルの処理