import { createServer } from "./app.js"; import { env } from "./config/env.js"; import { logger } from "./lib/logger.service.js"; import { registerAllRecipeSources } from "./sources/index.js"; // Populates the recipe-source registry (recipe-source-registry.ts) before // the app starts — see registerAllRecipeSources' doc comment for why this // doesn't happen inside app.ts/createServer() itself. registerAllRecipeSources(); const server = createServer(); server.listen(env.PORT, () => { logger.info("API listening", { port: env.PORT, nodeEnv: env.NODE_ENV }); });