Skip to content

Commit

Permalink
add manifestHost to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomontero committed Apr 19, 2024
1 parent a43da1b commit f8c1e1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ let settings = {
wirelessSetupFilter: /^Photon-.*$/,

serial_follow_delay: 250,
manifestHost: envValue('PARTICLE_MANIFEST_HOST','binaries.particle.io'),

notSourceExtensions: [
'.ds_store',
Expand Down
3 changes: 1 addition & 2 deletions src/cmd/update-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const semver = require('semver');
const log = require('../lib/log');
const chalk = require('chalk');
const settings = require('../../settings');
const MANIFEST_HOST = process.env.PARTICLE_MANIFEST_HOST || 'binaries.particle.io';
const request = require('request');
const zlib = require('zlib');
const Spinner = require('cli-spinner').Spinner;
Expand Down Expand Up @@ -67,7 +66,7 @@ class UpdateCliCommand {

async downloadManifest(version) {
const fileName = version ? `manifest-${version}.json` : 'manifest.json';
const url = `https://${MANIFEST_HOST}/particle-cli/${fileName}`;
const url = `https://${settings.manifestHost}/particle-cli/${fileName}`;
return new Promise((resolve, reject ) => {
return request(url, (error, response, body) => {
if (error) {
Expand Down

0 comments on commit f8c1e1c

Please sign in to comment.