mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-09-16 09:41:38 +08:00
Update defaultEndpoint
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
*/
|
||||
|
||||
const fetch = require('node-fetch');
|
||||
let host = process.env.PUSHY_REGISTRY || 'https://update.reactnative.cn/api';
|
||||
const defaultEndpoint = 'http://u.reactnative.cn/api'
|
||||
let host = process.env.PUSHY_REGISTRY || defaultEndpoint;
|
||||
const fs = require('fs');
|
||||
import request from 'request';
|
||||
import ProgressBar from 'progress';
|
||||
@@ -59,7 +60,7 @@ exports.closeSession = function() {
|
||||
savedSession = undefined;
|
||||
}
|
||||
session = undefined;
|
||||
host = process.env.PUSHY_REGISTRY || 'https://update.reactnative.cn/api';
|
||||
host = process.env.PUSHY_REGISTRY || defaultEndpoint;
|
||||
};
|
||||
|
||||
async function query(url, options) {
|
||||
|
Reference in New Issue
Block a user