local configure: Allow configuring 'developmentMode' in config.json

Change-type: minor
This commit is contained in:
Paulo Castro
2021-12-25 02:17:41 +00:00
parent ec6fd050f6
commit 851301a336

View File

@ -113,6 +113,12 @@ export default class LocalConfigureCmd extends Command {
}, },
domain: [['config_json', 'hostname']], domain: [['config_json', 'hostname']],
}, },
{
template: {
developmentMode: '{{developmentMode}}',
},
domain: [['config_json', 'developmentMode']],
},
{ {
template: { template: {
wifi: { wifi: {
@ -163,6 +169,13 @@ export default class LocalConfigureCmd extends Command {
name: 'networkKey', name: 'networkKey',
default: data.networkKey, default: data.networkKey,
}, },
{
message:
'Enable development mode? (Open ports and root access - Not for production!)',
type: 'confirm',
name: 'developmentMode',
default: false,
},
{ {
message: 'Do you want to set advanced settings?', message: 'Do you want to set advanced settings?',
type: 'confirm', type: 'confirm',