Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const prepareServer = async (options?: { migrate: boolean }) => {
const settings = await bootstrapApp();
if (options && options.migrate) {
await migrateDatabase(settings.connection);
}
setConnection(settings.connection);
return settings;
};