Add technical; snippet support
This commit is contained in:
16
src/index.ts
16
src/index.ts
@@ -1,6 +1,8 @@
|
||||
import {globalRegistry} from '@extollo/lib'
|
||||
import {globalRegistry, env} from '@extollo/lib'
|
||||
import {app} from './bootstrap'
|
||||
|
||||
global.Error.stackTraceLimit = Infinity
|
||||
|
||||
globalRegistry.run(async () => {
|
||||
/*
|
||||
* The Application
|
||||
@@ -9,5 +11,15 @@ globalRegistry.run(async () => {
|
||||
* ties your entire application together. The app container manages services
|
||||
* and lifecycle.
|
||||
*/
|
||||
await app().run()
|
||||
|
||||
const appInstance = app()
|
||||
|
||||
const limitOverride = env('STACK_TRACE_LIMIT')
|
||||
if ( limitOverride && !isNaN(limitOverride) ) {
|
||||
Error.stackTraceLimit = limitOverride
|
||||
}
|
||||
|
||||
Error.stackTraceLimit = 50
|
||||
|
||||
await appInstance.run()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user