File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
examples/custom-session-next-auth Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ const sessionSecret = '-- DEV COOKIE SECRET; CHANGE ME --';
1414let _keystoneContext : Context = ( globalThis as any ) . _keystoneContext ;
1515
1616async function getKeystoneContext ( ) {
17- if ( ! _keystoneContext ) {
18- // TODO: this could probably be better
19- _keystoneContext = getContext ( config , await import ( '.myprisma/client' ) ) ;
20- if ( process . env . NODE_ENV !== 'production' ) {
21- ( globalThis as any ) . _keystoneContext = _keystoneContext ;
22- }
17+ if ( _keystoneContext ) return _keystoneContext ;
18+
19+ // TODO: this could probably be better
20+ _keystoneContext = getContext ( config , await import ( '.myprisma/client' ) ) ;
21+ if ( process . env . NODE_ENV !== 'production' ) {
22+ ( globalThis as any ) . _keystoneContext = _keystoneContext ;
2323 }
2424 return _keystoneContext ;
2525}
You can’t perform that action at this time.
0 commit comments