Skip to content

Commit

Permalink
Fixed MAPBOX_KEY validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 committed Mar 19, 2022
1 parent f790315 commit dbd79f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/config/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export const immichAppConfig: ConfigModuleOptions = {
JWT_SECRET: Joi.string().required(),
ENABLE_MAPBOX: Joi.boolean().required().valid(true, false),
MAPBOX_KEY: Joi.any().when('ENABLE_MAPBOX', {
is: true,
then: Joi.string().required(),
otherwise: Joi.string().optional(),
is: false,
then: Joi.string().optional().allow(null, ''),
otherwise: Joi.string().required(),
}),
}),
};

0 comments on commit dbd79f4

Please sign in to comment.