From 5e69793925e1a0494ea514dcf8ff3d1dfda3bffe Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Tue, 25 Aug 2020 11:41:01 +0800 Subject: [PATCH] Update api endpoint --- src/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api.js b/src/api.js index 32056e2..78e02df 100644 --- a/src/api.js +++ b/src/api.js @@ -3,7 +3,7 @@ */ const fetch = require('node-fetch'); -let host = process.env.PUSHY_REGISTRY || 'https://update.react-native.cn/api'; +let host = process.env.PUSHY_REGISTRY || 'https://update.reactnative.cn/api'; const fs = require('fs'); import request from 'request'; import ProgressBar from 'progress'; @@ -59,7 +59,7 @@ exports.closeSession = function() { savedSession = undefined; } session = undefined; - host = process.env.PUSHY_REGISTRY || 'https://update.reactnative.cn'; + host = process.env.PUSHY_REGISTRY || 'https://update.reactnative.cn/api'; }; async function query(url, options) {