cloudron 4.14.1 → 4.14.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/actions.js +8 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudron",
3
- "version": "4.14.1",
3
+ "version": "4.14.2",
4
4
  "license": "MIT",
5
5
  "description": "Cloudron Commandline Tool",
6
6
  "main": "main.js",
package/src/actions.js CHANGED
@@ -653,12 +653,14 @@ async function configure(options) {
653
653
  const domainObject = await selectDomain(location, options);
654
654
 
655
655
  const secondaryDomains = {};
656
- app.secondaryDomains.forEach(sd => {
657
- secondaryDomains[sd.environmentVariable] = {
658
- subdomain: sd.subdomain,
659
- domain: sd.domain
660
- };
661
- });
656
+ if (app.secondaryDomains) { // only valid post 7.1
657
+ app.secondaryDomains.forEach(sd => {
658
+ secondaryDomains[sd.environmentVariable] = {
659
+ subdomain: sd.subdomain,
660
+ domain: sd.domain
661
+ };
662
+ });
663
+ }
662
664
 
663
665
  const data = {
664
666
  location: domainObject.subdomain, // LEGACY