Update
This commit is contained in:
@ -14,7 +14,6 @@ import {
|
||||
fetchEpisodesWithArticles,
|
||||
getAllCategories,
|
||||
getAllFeedsIncludingInactive,
|
||||
getAllSettings,
|
||||
getFeedByUrl,
|
||||
getFeedRequests,
|
||||
getFeedsByCategory,
|
||||
@ -35,6 +34,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 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)
|
||||
|
Reference in New Issue
Block a user