@adobe/helix-admin-support 2.1.29 → 2.1.30
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/fetch-helix-config.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.1.30](https://github.com/adobe/helix-admin-support/compare/v2.1.29...v2.1.30) (2023-07-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* always load helix-config.json from main branch ([#167](https://github.com/adobe/helix-admin-support/issues/167)) ([bad7775](https://github.com/adobe/helix-admin-support/commit/bad77758c5afe90d2dedc14b17079841256b6037))
|
|
7
|
+
|
|
1
8
|
## [2.1.29](https://github.com/adobe/helix-admin-support/compare/v2.1.28...v2.1.29) (2023-07-16)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -64,6 +64,7 @@ async function handleResponse(log, response, key, type) {
|
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* Retrieves the helix-config.json which is an aggregate from fstab.yaml and head.html.
|
|
67
|
+
* Note: it always uses the branch `main`.
|
|
67
68
|
*
|
|
68
69
|
* @param {AdminContext} ctx the context
|
|
69
70
|
* @param {PathInfo} info path info
|
|
@@ -76,7 +77,7 @@ export async function fetchHelixConfig(ctx, info, optional) {
|
|
|
76
77
|
|
|
77
78
|
if (!('helixConfig' in attributes)) {
|
|
78
79
|
if (owner && repo && ref) {
|
|
79
|
-
const key = `${owner}/${repo}
|
|
80
|
+
const key = `${owner}/${repo}/main/helix-config.json`;
|
|
80
81
|
const response = await fetchS3(ctx, 'helix-code-bus', key);
|
|
81
82
|
attributes.helixConfig = await handleResponse(log, response, key, 'code-bus');
|
|
82
83
|
} else {
|