diff --git a/package.json b/package.json index c7894d8..54416b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "raspberry-pi-client", - "version": "1.0.0-rc.5", + "version": "1.0.0-rc.6", "private": true, "scripts": { "dev": "next dev", diff --git a/scripts/initialize-environment.js b/scripts/initialize-environment.js index 35f1212..d46cd66 100644 --- a/scripts/initialize-environment.js +++ b/scripts/initialize-environment.js @@ -9,8 +9,8 @@ const configFilePath = "../data/config.json"; function initializeConfig() { const hasConfig = Boolean(configJson); const message = hasConfig - ? `Config env variable '${CONFIG_ENV_VAR_NAME}' exists. File will be written to disk.` - : `No value found for config env variable '${CONFIG_ENV_VAR_NAME}'. Skipping writing config file.`; + ? `Config env variable '${configEnvName}' exists. File will be written to disk.` + : `No value found for config env variable '${configEnvName}'. Skipping writing config file.`; console.log(message); if (hasConfig) { @@ -19,7 +19,7 @@ function initializeConfig() { } function saveConfig() { - const configJson = env[CONFIG_ENV_VAR_NAME]; + const configJson = env[configEnvName]; fs.writeFileSync(configFilePath, configJson); console.log(`Config file written to '${configFilePath}'`); }