Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
void (async () => {
try {
switch (launchMode) {
case 'dev': {
const moduleAdmin = resolveModuleAdmin()
const resolveConfig = merge(
defaultResolveConfig,
appConfig,
devConfig,
moduleAdmin
)
await reset(resolveConfig, {
dropEventStore: false,
dropSnapshots: true,
dropReadModels: true,
dropSagas: true
})
await watch(resolveConfig)
break
callback: 'auth/route_login_callback.js'
}
]
}
])
const baseConfig = merge(
defaultResolveConfig,
appConfig,
moduleComments,
moduleAuth
)
switch (launchMode) {
case 'dev': {
const moduleAdmin = resolveModuleAdmin()
const resolveConfig = merge(baseConfig, devConfig, moduleAdmin)
await reset(resolveConfig, {
dropEventStore: false,
dropSnapshots: true,
dropReadModels: true,
dropSagas: true
})
await watch(resolveConfig)
break
}
case 'build': {
const resolveConfig = merge(baseConfig, prodConfig)
await build(resolveConfig)
break
{
path: 'auth/local/login',
method: 'POST',
callback: 'common/auth/route-login-callback.js'
}
],
logoutRoute: {
path: 'auth/local/logout',
method: 'GET'
}
}
])
switch (launchMode) {
case 'dev': {
const moduleAdmin = resolveModuleAdmin()
const resolveConfig = merge(
defaultResolveConfig,
appConfig,
devConfig,
authModule,
moduleAdmin
)
await reset(
resolveConfig,
{
dropEventStore: false,
dropSnapshots: true,
dropReadModels: true,
dropSagas: true
},