@common-stack/frontend-stack-react 6.0.8-alpha.21 → 6.0.8-alpha.23

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
- logger.debug('Creating BatchHttpLink for server');
86
- link = new BatchHttpLink({
87
- uri: httpLocalGraphqlURL,
88
- fetch,
89
- batchInterval: 200,
90
- batchMax: 100,
91
- credentials: 'include',
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 === 'production') {
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.21",
3
+ "version": "6.0.8-alpha.23",
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.21",
36
- "@common-stack/client-core": "6.0.8-alpha.21",
37
- "@common-stack/client-react": "6.0.8-alpha.21",
35
+ "@common-stack/cache-api-server": "6.0.8-alpha.23",
36
+ "@common-stack/client-core": "6.0.8-alpha.23",
37
+ "@common-stack/client-react": "6.0.8-alpha.23",
38
38
  "@common-stack/components-pro": "6.0.8-alpha.7",
39
- "@common-stack/core": "6.0.8-alpha.21",
39
+ "@common-stack/core": "6.0.8-alpha.23",
40
40
  "@common-stack/remix-router-redux": "6.0.8-alpha.7",
41
- "@common-stack/server-core": "6.0.8-alpha.21",
41
+ "@common-stack/server-core": "6.0.8-alpha.23",
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": "e39de8e8c24fda15388b81452c7e85737ba35f07",
101
+ "gitHead": "43edc2f448dd53fb141f5c968f1eabfe3295c78f",
102
102
  "typescript": {
103
103
  "definition": "lib/index.d.ts"
104
104
  }