mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
Get app version from environment variable
This commit is contained in:
parent
ba62734bdb
commit
67f56768b8
@ -1,16 +1,17 @@
|
|||||||
const apiEndpoint = process.env.API_URL;
|
const apiEndpoint = process.env.API_URL;
|
||||||
const serverUrl = process.env.SERVER_URL;
|
const serverUrl = process.env.SERVER_URL;
|
||||||
const appBasePath = process.env.APP_BASE_PATH;
|
const appBasePath = process.env.APP_BASE_PATH;
|
||||||
|
const appVersion = process.env.APP_VERSION;
|
||||||
|
|
||||||
const constants = {
|
const constants = {
|
||||||
apiEndpoint,
|
apiEndpoint,
|
||||||
appBasePath,
|
appBasePath,
|
||||||
serverUrl,
|
serverUrl,
|
||||||
|
version: appVersion,
|
||||||
'aclList': ['acl_coa', 'acl_consign', 'acl_delete', 'acl_download', 'acl_edit', 'acl_create_editions', 'acl_view_editions',
|
'aclList': ['acl_coa', 'acl_consign', 'acl_delete', 'acl_download', 'acl_edit', 'acl_create_editions', 'acl_view_editions',
|
||||||
'acl_loan', 'acl_loan_request', 'acl_share', 'acl_transfer', 'acl_unconsign', 'acl_unshare', 'acl_view',
|
'acl_loan', 'acl_loan_request', 'acl_share', 'acl_transfer', 'acl_unconsign', 'acl_unshare', 'acl_view',
|
||||||
'acl_withdraw_transfer', 'acl_wallet_submit'],
|
'acl_withdraw_transfer', 'acl_wallet_submit'],
|
||||||
|
|
||||||
'version': 0.1,
|
|
||||||
'subdomains': [
|
'subdomains': [
|
||||||
{
|
{
|
||||||
'subdomain': 'cc',
|
'subdomain': 'cc',
|
||||||
|
Loading…
Reference in New Issue
Block a user