fix(home-server): add default for VERSION environment variable

This commit is contained in:
Karol Sójko 2023-06-02 12:52:43 +02:00
parent f23e444ed0
commit 2f569d4104
No known key found for this signature in database
GPG key ID: 50D9C5A8D4B8D73F
3 changed files with 2 additions and 3 deletions

View file

@ -83,7 +83,7 @@ export class ContainerConfigLoader {
container
.bind(TYPES.HTTP_CALL_TIMEOUT)
.toConstantValue(env.get('HTTP_CALL_TIMEOUT', true) ? +env.get('HTTP_CALL_TIMEOUT', true) : 60_000)
container.bind(TYPES.VERSION).toConstantValue(env.get('VERSION'))
container.bind(TYPES.VERSION).toConstantValue(env.get('VERSION', true) ?? 'development')
container.bind(TYPES.CROSS_SERVICE_TOKEN_CACHE_TTL).toConstantValue(+env.get('CROSS_SERVICE_TOKEN_CACHE_TTL', true))
// Middleware

View file

@ -1,6 +1,5 @@
LOG_LEVEL=debug
NODE_ENV=development
VERSION=development
JWT_SECRET=
AUTH_JWT_SECRET=

View file

@ -95,7 +95,7 @@ export class ContainerConfigLoader {
}
container.bind(TYPES.Revisions_NEW_RELIC_ENABLED).toConstantValue(env.get('NEW_RELIC_ENABLED', true))
container.bind(TYPES.Revisions_VERSION).toConstantValue(env.get('VERSION'))
container.bind(TYPES.Revisions_VERSION).toConstantValue(env.get('VERSION', true) ?? 'development')
// Map
container