@common-stack/frontend-stack-react 6.0.8-alpha.21 → 6.0.8-alpha.29
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.
|
@@ -82,14 +82,25 @@ const createApolloClient = ({ scope, isDev, isDebug, isSSR, getDataIdFromObject,
|
|
|
82
82
|
}, wsLink, new HttpLink({ uri: httpGraphqlURL, credentials: 'include', fetch }));
|
|
83
83
|
}
|
|
84
84
|
else if (isServer) {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
if (process.env.SERVER_ENV === 'cloudflare') {
|
|
86
|
+
logger.debug('Creating BatchHttpLink for cloudflare');
|
|
87
|
+
link = new BatchHttpLink({
|
|
88
|
+
uri: httpGraphqlURL,
|
|
89
|
+
fetch,
|
|
90
|
+
batchInterval: 200,
|
|
91
|
+
batchMax: 100,
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
logger.debug('Creating BatchHttpLink for server');
|
|
96
|
+
link = new BatchHttpLink({
|
|
97
|
+
uri: httpLocalGraphqlURL,
|
|
98
|
+
fetch,
|
|
99
|
+
batchInterval: 200,
|
|
100
|
+
batchMax: 100,
|
|
101
|
+
credentials: 'include',
|
|
102
|
+
});
|
|
103
|
+
}
|
|
93
104
|
}
|
|
94
105
|
else {
|
|
95
106
|
logger.debug('Creating HttpLink for native');
|
|
@@ -11,7 +11,7 @@ function getRedisClient(logger) {
|
|
|
11
11
|
}
|
|
12
12
|
else {
|
|
13
13
|
// eslint-disable-next-line no-lonely-if
|
|
14
|
-
if (process.env.SERVER_ENV === '
|
|
14
|
+
if (process.env.SERVER_ENV === 'cloudflare') {
|
|
15
15
|
logger?.info('Setting Upstash Redis connection');
|
|
16
16
|
redisClient = new UpstashRedisClient({
|
|
17
17
|
url: config.REDIS_URL,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/frontend-stack-react",
|
|
3
|
-
"version": "6.0.8-alpha.
|
|
3
|
+
"version": "6.0.8-alpha.29",
|
|
4
4
|
"description": "Client Module for react app",
|
|
5
5
|
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"@apollo/client": "^3.9.0",
|
|
33
33
|
"@cdm-logger/client": "^9.0.3",
|
|
34
34
|
"@cdm-logger/server": "^9.0.3",
|
|
35
|
-
"@common-stack/cache-api-server": "6.0.8-alpha.
|
|
36
|
-
"@common-stack/client-core": "6.0.8-alpha.
|
|
37
|
-
"@common-stack/client-react": "6.0.8-alpha.
|
|
38
|
-
"@common-stack/components-pro": "6.0.8-alpha.
|
|
39
|
-
"@common-stack/core": "6.0.8-alpha.
|
|
40
|
-
"@common-stack/remix-router-redux": "6.0.8-alpha.
|
|
41
|
-
"@common-stack/server-core": "6.0.8-alpha.
|
|
35
|
+
"@common-stack/cache-api-server": "6.0.8-alpha.29",
|
|
36
|
+
"@common-stack/client-core": "6.0.8-alpha.29",
|
|
37
|
+
"@common-stack/client-react": "6.0.8-alpha.29",
|
|
38
|
+
"@common-stack/components-pro": "6.0.8-alpha.29",
|
|
39
|
+
"@common-stack/core": "6.0.8-alpha.29",
|
|
40
|
+
"@common-stack/remix-router-redux": "6.0.8-alpha.29",
|
|
41
|
+
"@common-stack/server-core": "6.0.8-alpha.29",
|
|
42
42
|
"@reduxjs/toolkit": "^2.2.6",
|
|
43
43
|
"@remix-run/express": "~2.10.1",
|
|
44
44
|
"@remix-run/node": "~2.10.1",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"publishConfig": {
|
|
99
99
|
"access": "public"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "a7103bf890fd1149b4abaeff530e7f3d8194f970",
|
|
102
102
|
"typescript": {
|
|
103
103
|
"definition": "lib/index.d.ts"
|
|
104
104
|
}
|