remove VERSION env dependency from server

This commit is contained in:
Amruth Pillai
2023-04-06 15:03:53 +02:00
parent ba6ca4d220
commit b4381a22f3
2 changed files with 0 additions and 2 deletions

View File

@ -2,7 +2,6 @@ import { registerAs } from '@nestjs/config';
export default registerAs('app', () => ({
timezone: process.env.TZ,
version: process.env.VERSION,
environment: process.env.NODE_ENV,
secretKey: process.env.SECRET_KEY,
port: parseInt(process.env.PORT, 10) || 3100,

View File

@ -14,7 +14,6 @@ const validationSchema = Joi.object({
// App
TZ: Joi.string().default('UTC'),
PORT: Joi.number().default(3100),
VERSION: Joi.string().required(),
SECRET_KEY: Joi.string().required(),
NODE_ENV: Joi.string().valid('development', 'production').default('development'),