Rocket.Chat/apps/meteor/server/main.ts
Guilherme Gazzo 87a15899ad
chore: add hono as router (#35078)
Co-authored-by: Marcos Defendi <marcos.defendi@rocket.chat>
Co-authored-by: Debdut Chakraborty <debdut.chakraborty@rocket.chat>
2025-04-08 16:15:43 -04:00

32 lines
910 B
TypeScript

import './tracing';
import './models';
/**
* ./settings uses top level await, in theory the settings creation
* and the startup should be done in parallel
*/
import './settings';
import { configureServer } from './configuration';
import { registerServices } from './services/startup';
import { startup } from './startup';
import { startRestAPI } from '../app/api/server/api';
import { settings } from '../app/settings/server';
import { startupApp } from '../ee/server';
import { startRocketChat } from '../startRocketChat';
import './routes';
import '../app/lib/server/startup';
import './importPackages';
import './methods';
import './publications';
import '../lib/oauthRedirectUriServer';
import './lib/pushConfig';
import './features/EmailInbox/index';
await Promise.all([configureServer(settings), registerServices(), startup()]);
await startRocketChat();
await startupApp();
await startRestAPI();