@adobe/helix-config 2.13.0 → 2.13.1
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/config-legacy.js +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.13.1](https://github.com/adobe/helix-config/compare/v2.13.0...v2.13.1) (2024-05-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* support old configs without data ([#73](https://github.com/adobe/helix-config/issues/73)) ([bfe92bf](https://github.com/adobe/helix-config/commit/bfe92bf567af97317f69be0b43ed39cb4f1f33eb))
|
|
7
|
+
|
|
1
8
|
# [2.13.0](https://github.com/adobe/helix-config/compare/v2.12.2...v2.13.0) (2024-05-07)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/config-legacy.js
CHANGED
|
@@ -117,7 +117,8 @@ export async function resolveLegacyConfig(ctx, rso, scope) {
|
|
|
117
117
|
return null;
|
|
118
118
|
}
|
|
119
119
|
const { contentBusId } = helixConfig.content.data['/'];
|
|
120
|
-
|
|
120
|
+
const fstab = helixConfig.fstab.data || helixConfig.fstab;
|
|
121
|
+
let source = fstab.mountpoints['/'];
|
|
121
122
|
if (typeof source === 'string') {
|
|
122
123
|
source = {
|
|
123
124
|
type: source.startsWith('https://drive.google.com/')
|
|
@@ -142,9 +143,9 @@ export async function resolveLegacyConfig(ctx, rso, scope) {
|
|
|
142
143
|
contentBusId,
|
|
143
144
|
source,
|
|
144
145
|
},
|
|
145
|
-
folders:
|
|
146
|
+
folders: fstab.folders ?? {},
|
|
146
147
|
/* c8 ignore next */
|
|
147
|
-
head: helixConfig?.head?.data ?? {},
|
|
148
|
+
head: helixConfig?.head?.data ?? helixConfig?.head ?? {},
|
|
148
149
|
};
|
|
149
150
|
const configAllPreview = await fetchConfigAll(ctx, config.content.contentBusId, 'preview');
|
|
150
151
|
const configAllLive = await fetchConfigAll(ctx, config.content.contentBusId, 'live');
|