Skip to content

Commit

Permalink
fix: Do not autoindex by default
Browse files Browse the repository at this point in the history
  • Loading branch information
SokratisVidros committed Nov 12, 2024
1 parent 30cb0e8 commit 7636824
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/config/env.validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export const envValidators = {
JWT_SECRET: str(),
SENDGRID_API_KEY: str({ default: '' }),
/** @deprecated - use `MONGO_AUTO_CREATE_INDEXES` instead */
AUTO_CREATE_INDEXES: bool({ default: true }),
MONGO_AUTO_CREATE_INDEXES: bool({ default: true }),
AUTO_CREATE_INDEXES: bool({ default: false }),
MONGO_AUTO_CREATE_INDEXES: bool({ default: false }),
MONGO_MAX_IDLE_TIME_IN_MS: num({ default: 1000 * 30 }),
MONGO_MAX_POOL_SIZE: num({ default: 50 }),
MONGO_MIN_POOL_SIZE: num({ default: 10 }),
Expand Down
4 changes: 2 additions & 2 deletions apps/webhook/src/config/env.validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export type ValidatedEnv = StringifyEnv<CleanedEnv<typeof envValidators>>;

export const envValidators = {
/** @deprecated - use `MONGO_AUTO_CREATE_INDEXES` instead */
AUTO_CREATE_INDEXES: bool({ default: true }),
MONGO_AUTO_CREATE_INDEXES: bool({ default: true }),
AUTO_CREATE_INDEXES: bool({ default: false }),
MONGO_AUTO_CREATE_INDEXES: bool({ default: false }),
MONGO_MAX_IDLE_TIME_IN_MS: num({ default: 1000 * 30 }),
MONGO_MAX_POOL_SIZE: num({ default: 50 }),
MONGO_MIN_POOL_SIZE: num({ default: 10 }),
Expand Down
4 changes: 2 additions & 2 deletions apps/worker/src/config/env.validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export const envValidators = {
REDIS_CACHE_FAMILY: str({ default: undefined }),
REDIS_CACHE_KEY_PREFIX: str({ default: undefined }),
/** @deprecated - use `MONGO_AUTO_CREATE_INDEXES` instead */
AUTO_CREATE_INDEXES: bool({ default: true }),
MONGO_AUTO_CREATE_INDEXES: bool({ default: true }),
AUTO_CREATE_INDEXES: bool({ default: false }),
MONGO_AUTO_CREATE_INDEXES: bool({ default: false }),
MONGO_MAX_IDLE_TIME_IN_MS: num({ default: 1000 * 30 }),
MONGO_MAX_POOL_SIZE: num({ default: 50 }),
MONGO_MIN_POOL_SIZE: num({ default: 10 }),
Expand Down
4 changes: 2 additions & 2 deletions apps/ws/src/config/env.validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export type ValidatedEnv = StringifyEnv<CleanedEnv<typeof envValidators>>;
export const envValidators = {
JWT_SECRET: str(),
/** @deprecated - use `MONGO_AUTO_CREATE_INDEXES` instead */
AUTO_CREATE_INDEXES: bool({ default: true }),
MONGO_AUTO_CREATE_INDEXES: bool({ default: true }),
AUTO_CREATE_INDEXES: bool({ default: false }),
MONGO_AUTO_CREATE_INDEXES: bool({ default: false }),
MONGO_MAX_IDLE_TIME_IN_MS: num({ default: 1000 * 30 }),
MONGO_MAX_POOL_SIZE: num({ default: 50 }),
MONGO_MIN_POOL_SIZE: num({ default: 10 }),
Expand Down

0 comments on commit 7636824

Please sign in to comment.