-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.js
74 lines (73 loc) · 3.17 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// webpack configuration for prod/staging/dev builds
const deployment = {
development: {
url: branch => `https://development.library.uq.edu.au/espace/${branch}/#/`,
fullPath: branch => `https://development.library.uq.edu.au/espace/${branch}/#`,
api: 'https://api.library.uq.edu.au/staging/',
auth_login: 'https://fez-staging.library.uq.edu.au/login',
auth_logout: 'https://auth.library.uq.edu.au/logout',
gtm: 'GTM-NC7M38Q',
title: 'UQ eSpace (DEVELOPMENT)',
short_name: 'eSpace',
titleSuffix: 'Development',
environment: 'development',
basePath: 'espace/', // updated in webpack
publicPath: '',
orcidUrl: 'https://sandbox.orcid.org',
orcidClientId: 'APP-OXX6M6MBQ77GUVWX',
reusablejs: 'https://assets.library.uq.edu.au/reusable-webcomponents/uq-lib-reusable.min.js',
// reusablejs: 'https://assets.library.uq.edu.au/reusable-webcomponents-development/[INSERT BRANCH NAME]/uq-lib-reusable.min.js', // dev
},
staging: {
url: () => 'https://fez-staging.library.uq.edu.au/',
fullPath: () => 'https://fez-staging.library.uq.edu.au',
api: 'https://api.library.uq.edu.au/staging/',
auth_login: 'https://fez-staging.library.uq.edu.au/login',
auth_logout: 'https://auth.library.uq.edu.au/logout',
gtm: 'GTM-NC7M38Q',
title: 'UQ eSpace (STAGING)',
short_name: 'eSpace',
titleSuffix: 'Staging',
environment: 'staging',
basePath: '',
publicPath: '/',
orcidUrl: 'https://sandbox.orcid.org',
orcidClientId: 'APP-OXX6M6MBQ77GUVWX',
reusablejs: 'http://assets.library.uq.edu.au/reusable-webcomponents-staging/uq-lib-reusable.min.js',
},
production: {
url: () => 'https://espace.library.uq.edu.au/',
fullPath: () => 'https://espace.library.uq.edu.au',
api: 'https://api.library.uq.edu.au/v1/',
auth_login: 'https://espace.library.uq.edu.au/login',
auth_logout: 'https://auth.library.uq.edu.au/logout',
gtm: 'GTM-NC7M38Q',
title: 'UQ eSpace',
short_name: 'eSpace',
titleSuffix: '',
environment: 'production',
basePath: '',
publicPath: '/',
orcidUrl: 'https://orcid.org',
orcidClientId: 'APP-UIQ1ZTKAU17ZGZSC',
reusablejs: 'https://assets.library.uq.edu.au/reusable-webcomponents/uq-lib-reusable.min.js',
},
prodtest: {
url: () => 'https://fez-testing.library.uq.edu.au/',
fullPath: () => 'https://fez-testing.library.uq.edu.au',
api: 'https://api.library.uq.edu.au/v1/',
auth_login: 'https://fez-testing.library.uq.edu.au/login',
auth_logout: 'https://auth.library.uq.edu.au/logout',
gtm: 'GTM-T4NPC25',
title: 'UQ eSpace (PRODTEST)',
short_name: 'eSpace',
titleSuffix: 'ProdTesting',
environment: 'production',
basePath: '',
publicPath: '/',
orcidUrl: 'https://orcid.org',
orcidClientId: 'APP-UIQ1ZTKAU17ZGZSC',
reusablejs: 'https://assets.library.uq.edu.au/reusable-webcomponents/uq-lib-reusable.min.js',
},
};
exports.default = deployment;