Add technical; snippet support

This commit is contained in:
2022-03-31 10:22:41 -05:00
parent 2a8571d6dd
commit 22c2b9f665
1093 changed files with 916277 additions and 133 deletions

View File

@@ -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()
})