-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.js
54 lines (53 loc) · 2.28 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
// webpack configuration for prod/staging/dev builds
const deployment = {
development: {
url: branch => `https://homepage-development.library.uq.edu.au/${branch}/#/`,
fullPath: branch => `https://homepage-development.library.uq.edu.au/${branch}/#`,
api: 'https://api.library.uq.edu.au/staging/',
auth_login: 'https://auth.library.uq.edu.au/login',
auth_logout: 'https://auth.library.uq.edu.au/logout',
gtm: 'GTM-NC7M38Q',
title: 'UQ Library (DEVELOPMENT)',
short_name: 'Library',
titleSuffix: 'Development',
environment: 'development',
basePath: '',
publicPath: '',
// reusablejs: 'https://assets.library.uq.edu.au/reusable-webcomponents-development/[BRANCH_NAME]/uq-lib-reusable.min.js', // dev
reusablejs: 'https://assets.library.uq.edu.au/reusable-webcomponents/uq-lib-reusable.min.js',
removeConsoleLog: false,
},
staging: {
url: () => 'https://homepage-staging.library.uq.edu.au/',
fullPath: () => 'https://homepage-staging.library.uq.edu.au',
api: 'https://api.library.uq.edu.au/staging/',
auth_login: 'https://auth.library.uq.edu.au/login',
auth_logout: 'https://auth.library.uq.edu.au/logout',
gtm: 'GTM-NC7M38Q',
title: 'UQ Library (STAGING)',
short_name: 'Library',
titleSuffix: 'Staging',
environment: 'staging',
basePath: '',
publicPath: '/',
reusablejs: 'https://assets.library.uq.edu.au/reusable-webcomponents-staging/uq-lib-reusable.min.js',
removeConsoleLog: true,
},
production: {
url: () => 'https://homepage-production.library.uq.edu.au/',
fullPath: () => 'https://homepage-production.library.uq.edu.au',
api: 'https://api.library.uq.edu.au/v1/',
auth_login: 'https://auth.library.uq.edu.au/login',
auth_logout: 'https://auth.library.uq.edu.au/logout',
gtm: 'GTM-NC7M38Q',
title: 'UQ Library',
short_name: 'Library',
titleSuffix: '',
environment: 'production',
basePath: '',
publicPath: '/',
reusablejs: 'https://assets.library.uq.edu.au/reusable-webcomponents/uq-lib-reusable.min.js',
removeConsoleLog: true,
},
};
exports.default = deployment;