@zohodesk/react-cli 1.1.15 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/lib/utils/getServerURL.js +7 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
@@ -44,6 +44,26 @@ Now to run app
|
|
44
44
|
|
45
45
|
# Change Logs
|
46
46
|
|
47
|
+
# 1.1.16 (25-10-2023)
|
48
|
+
|
49
|
+
**Feature:-**
|
50
|
+
|
51
|
+
- Support for running devURL in a Kubernetes (k8s) environment has been added.
|
52
|
+
|
53
|
+
In order to support k8's, we need to the change the server url:-
|
54
|
+
|
55
|
+
Follow the below steps to enable support for k8's in your app:-
|
56
|
+
|
57
|
+
1.Add the following config in your react-cli.config.js file:-
|
58
|
+
|
59
|
+
```
|
60
|
+
app: {
|
61
|
+
server: {
|
62
|
+
domain : 'kubernetes'
|
63
|
+
}
|
64
|
+
}
|
65
|
+
```
|
66
|
+
|
47
67
|
# 1.1.15 (11-10-2023)
|
48
68
|
|
49
69
|
**Feature:-**
|
@@ -5,13 +5,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.default = void 0;
|
7
7
|
|
8
|
-
|
8
|
+
const getServerURL = (serverInfo, protocol) => {
|
9
|
+
// eslint-disable-next-line prefer-const
|
9
10
|
let {
|
10
11
|
host,
|
11
12
|
domain,
|
12
13
|
port
|
13
14
|
} = serverInfo;
|
14
15
|
|
16
|
+
if (domain === 'kubernetes') {
|
17
|
+
return `${protocol ? `${protocol}:` : ''}//${host}`;
|
18
|
+
}
|
19
|
+
|
15
20
|
if (protocol) {
|
16
21
|
if (protocol === 'ht' + 'tp') {
|
17
22
|
port = Number(port) + 1;
|
@@ -20,7 +25,7 @@ let getServerURL = (serverInfo, protocol) => {
|
|
20
25
|
return `${protocol ? `${protocol}:` : ''}//${host}.${domain}.zohocorpin.com:${Number(port) + 1}`;
|
21
26
|
}
|
22
27
|
|
23
|
-
return `${protocol ? `${protocol}:` : ''}//${host}:${port}`;
|
28
|
+
return `${protocol ? `${protocol}:` : ''}//${host}:${Number(port) + 1}`;
|
24
29
|
}
|
25
30
|
}
|
26
31
|
|
package/npm-shrinkwrap.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zohodesk/react-cli",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.16",
|
4
4
|
"lockfileVersion": 2,
|
5
5
|
"requires": true,
|
6
6
|
"packages": {
|
7
7
|
"": {
|
8
8
|
"name": "@zohodesk/react-cli",
|
9
|
-
"version": "1.1.
|
9
|
+
"version": "1.1.16",
|
10
10
|
"license": "ISC",
|
11
11
|
"dependencies": {
|
12
12
|
"@babel/cli": "7.10.5",
|