import { loadConfig } from "./config.js"; import { buildApp } from "./app.js"; const cfg = loadConfig(); const { app } = await buildApp(cfg); try { await app.listen({ port: cfg.port, host: cfg.host }); console.log(`[vilmal] serwer: http://${cfg.host}:${cfg.port} (env=${cfg.env})`); } catch (err) { app.log.error(err); process.exit(1); }