nextemos 6.1.7 → 6.1.9

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.
@@ -80,10 +80,7 @@ const fetchRequest = () => {
80
80
  }
81
81
  // İstek seçeneklerini oluştur
82
82
  const requestOptions = Object.assign(Object.assign({}, options), { method });
83
- // Node.js(Next.js) için cache'i no-cache yap
84
- if (process.env.NEXT_RUNTIME === "nodejs")
85
- requestOptions.cache = "no-cache";
86
- if (FETCH_OPTIONS.CACHE)
83
+ if (FETCH_OPTIONS.CACHE && FETCH_OPTIONS.CACHE !== "")
87
84
  requestOptions.cache = FETCH_OPTIONS.CACHE;
88
85
  // Cache seçeneği varsa onu kullan
89
86
  if (options.cache)
@@ -40,8 +40,8 @@ exports.defaultConfig = {
40
40
  THUMBOR_SOURCE: "",
41
41
  DEFAULT_LANGUAGE: "tr",
42
42
  FETCH_OPTIONS: {
43
- LOG_LEVEL: "info", // debug, info
44
- CACHE: "default",
43
+ LOG_LEVEL: "info",
44
+ CACHE: "",
45
45
  },
46
46
  KEYCLOAK: {
47
47
  URL: "https://identity.proj-e.com",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextemos",
3
- "version": "6.1.7",
3
+ "version": "6.1.9",
4
4
  "description": "For helpers and hooks used in NextJS projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/index.d.ts",