mirror of
https://github.com/logto-io/logto.git
synced 2025-02-10 21:58:23 -05:00
19 lines
338 B
TypeScript
19 lines
338 B
TypeScript
/* eslint-disable import/first */
|
|
import 'module-alias/register.js';
|
|
|
|
import dotenv from 'dotenv';
|
|
|
|
dotenv.config();
|
|
|
|
import Koa from 'koa';
|
|
import initApp from './init';
|
|
|
|
const app = new Koa();
|
|
|
|
(async () => {
|
|
try {
|
|
await initApp(app);
|
|
} catch (error: unknown) {
|
|
console.log('Error while initializing app', error);
|
|
}
|
|
})();
|