/* eslint-disable @typescript-eslint/no-explicit-any */ import { CONFIG } from '@/config' import createServer from './server/createServer' async function main() { // eslint-disable-next-line no-console console.log(`DLT_CONNECTOR_PORT=${CONFIG.DLT_CONNECTOR_PORT}`) const { app } = await createServer() app.listen(CONFIG.DLT_CONNECTOR_PORT, () => { // eslint-disable-next-line no-console console.log(`Server is running at http://localhost:${CONFIG.DLT_CONNECTOR_PORT}`) }) } main().catch((e) => { // eslint-disable-next-line no-console console.error(e) // eslint-disable-next-line n/no-process-exit process.exit(1) })