bot-api/src/index.ts

13 lines
346 B
TypeScript

import populateDatabase from "../tests/populateDatabase";
import { startApp } from "./app";
await startApp();
// This try carch is to prevent hot reload from making the process die due to coliding entries
try {
// Not insert test data into production
if (process.env.NODE_ENV != "production") {
await populateDatabase();
}
} catch {}