Fix: Make version changeable from the environment vars (#4654)

This commit is contained in:
Tejaswini Chile
2022-05-10 19:20:55 +05:30
committed by GitHub
parent 81d0405473
commit 9ed1f5d96b
5 changed files with 9 additions and 5 deletions

View File

@@ -38,9 +38,12 @@ class DashboardController < ActionController::Base
end
def app_config
{ APP_VERSION: Chatwoot.config[:version],
{
APP_VERSION: Chatwoot.config[:version],
VAPID_PUBLIC_KEY: VapidService.public_key,
ENABLE_ACCOUNT_SIGNUP: GlobalConfigService.load('ENABLE_ACCOUNT_SIGNUP', 'false'),
FB_APP_ID: GlobalConfigService.load('FB_APP_ID', '') }
FB_APP_ID: GlobalConfigService.load('FB_APP_ID', ''),
FACEBOOK_API_VERSION: 'v13.0'
}
end
end