-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
35 lines (34 loc) · 1.49 KB
/
config.js
File metadata and controls
35 lines (34 loc) · 1.49 KB
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
// webpack configuration for prod/staging/dev builds
const deployment = {
development: {
url: (branch) => `https://assets.library.uq.edu.au/reusable-webcomponents-development/${branch}/`,
fullPath: (branch) => `https://assets.library.uq.edu.au/reusable-webcomponents-development/${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',
environment: 'development',
basePath: '',
publicPath: '',
},
staging: {
url: () => 'https://assets.library.uq.edu.au/reusable-webcomponents-staging/',
fullPath: () => 'https://assets.library.uq.edu.au/reusable-webcomponents-staging/',
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',
environment: 'staging',
basePath: '',
publicPath: '/',
},
production: {
url: () => 'https://assets.library.uq.edu.au/reusable-webcomponents/',
fullPath: () => 'https://assets.library.uq.edu.au/reusablewebcomponents/',
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',
environment: 'production',
basePath: '',
publicPath: '/',
},
};
exports.default = deployment;