fimo-next 2.1.0 → 2.2.0-staging.2
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.
|
@@ -24,9 +24,9 @@ export const nextClientContentRuntime = {
|
|
|
24
24
|
},
|
|
25
25
|
headers(extra) {
|
|
26
26
|
const headers = { ...extra };
|
|
27
|
-
const
|
|
28
|
-
if (
|
|
29
|
-
headers['X-Fimo-
|
|
27
|
+
const branch = requireConnection().env;
|
|
28
|
+
if (branch) {
|
|
29
|
+
headers['X-Fimo-Branch'] = branch;
|
|
30
30
|
}
|
|
31
31
|
return headers;
|
|
32
32
|
},
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
export interface FimoConnection {
|
|
8
8
|
/** Tenant content API base URL for the active Fimo Branch, no trailing slash. */
|
|
9
9
|
readonly apiUrl: string;
|
|
10
|
-
/** Branch name sent as `X-Fimo-
|
|
10
|
+
/** Branch name sent as `X-Fimo-Branch`; omitted when the URL already pins a Branch. */
|
|
11
11
|
readonly env?: string;
|
|
12
12
|
/** Locale reads fall back to when neither the call nor the provider names one. */
|
|
13
13
|
readonly defaultLocale?: string;
|
|
@@ -11,9 +11,9 @@ export const nextServerContentRuntime = {
|
|
|
11
11
|
},
|
|
12
12
|
headers(extra) {
|
|
13
13
|
const headers = { ...extra };
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
16
|
-
headers['X-Fimo-
|
|
14
|
+
const branch = resolveConnection().env;
|
|
15
|
+
if (branch) {
|
|
16
|
+
headers['X-Fimo-Branch'] = branch;
|
|
17
17
|
}
|
|
18
18
|
return headers;
|
|
19
19
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fimo-next",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0-staging.2",
|
|
4
4
|
"description": "Fimo runtime for Next.js projects.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/",
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"test:watch": "vitest"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@fimo/tsconfig": "2.
|
|
48
|
+
"@fimo/tsconfig": "2.2.0-staging.2",
|
|
49
49
|
"@tanstack/react-query": "^5.80.6",
|
|
50
50
|
"@types/node": "22.18.6",
|
|
51
51
|
"@types/react": "19.2.14",
|
|
52
52
|
"@types/react-dom": "19.2.3",
|
|
53
|
-
"fimo": "2.
|
|
54
|
-
"fimo-react": "2.
|
|
53
|
+
"fimo": "2.2.0-staging.2",
|
|
54
|
+
"fimo-react": "2.2.0-staging.2",
|
|
55
55
|
"next": "16.3.0",
|
|
56
56
|
"react": "19.2.4",
|
|
57
57
|
"react-dom": "19.2.4",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@tanstack/react-query": "^5.80.6",
|
|
63
|
-
"fimo": "
|
|
63
|
+
"fimo": "2.2.0-staging.2",
|
|
64
64
|
"fimo-react": ">=2.0.1",
|
|
65
65
|
"next": "^15.0.0 || ^16.0.0",
|
|
66
66
|
"react": "^18.2.0 || ^19.0.0",
|