Skip to content

Commit

Permalink
chore: disable db watchers on local envs (#32589)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego authored Jun 12, 2024
1 parent 16b67aa commit 99de6d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core-services/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ export {
IUserService,
};

export const dbWatchersDisabled = ['yes', 'true'].includes(String(process.env.DISABLE_DB_WATCHERS).toLowerCase());
export const dbWatchersDisabled =
['yes', 'true'].includes(String(process.env.DISABLE_DB_WATCHERS).toLowerCase()) || process.env.NODE_ENV !== 'production';

// TODO think in a way to not have to pass the service name to proxify here as well
export const Authorization = proxifyWithWait<IAuthorization>('authorization');
Expand Down

0 comments on commit 99de6d2

Please sign in to comment.