This commit is contained in:
2025-06-09 00:05:14 +09:00
parent 9e6127209e
commit dccd6f3a49
2 changed files with 10 additions and 1 deletions

View File

@ -25,6 +25,15 @@ import {
updateSetting,
} from "./services/database.js";
// Regenerate static files on startup
try {
const { regenerateStartupFiles } = await import("./services/podcast.js");
await regenerateStartupFiles();
} catch (error) {
console.error("Failed to regenerate startup files on admin server:", error);
// Don't exit - the admin server can still work without the regenerated files
}
const app = new Hono();
// Basic Authentication middleware (if credentials are provided)