File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -295,13 +295,18 @@ export class ConnectionManager implements IConnectionManager {
295
295
// After a connection has synced, we need to re-sync the org's search contexts as
296
296
// there may be new repos that match the search context's include/exclude patterns.
297
297
if ( env . CONFIG_PATH ) {
298
- const config = await loadConfig ( env . CONFIG_PATH ) ;
298
+ try {
299
+ const config = await loadConfig ( env . CONFIG_PATH ) ;
299
300
300
- await syncSearchContexts ( {
301
- db : this . db ,
302
- orgId,
303
- contexts : config . contexts ,
304
- } ) ;
301
+ await syncSearchContexts ( {
302
+ db : this . db ,
303
+ orgId,
304
+ contexts : config . contexts ,
305
+ } ) ;
306
+ } catch ( err ) {
307
+ this . logger . error ( `Failed to sync search contexts for connection ${ connectionId } : ${ err } ` ) ;
308
+ Sentry . captureException ( err ) ;
309
+ }
305
310
}
306
311
307
312
Original file line number Diff line number Diff line change @@ -10,6 +10,5 @@ export const env = createEnv({
10
10
} ,
11
11
runtimeEnv : process . env ,
12
12
emptyStringAsUndefined : true ,
13
- // @note : todo
14
- skipValidation : true ,
13
+ skipValidation : process . env . SKIP_ENV_VALIDATION === "1" ,
15
14
} ) ;
You can’t perform that action at this time.
0 commit comments