1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-09-16 09:41:38 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

update endpoint

This commit is contained in:
sunnylqm
2023-01-29 10:35:44 +08:00
parent f9adc700ed
commit cf61c297a6

View File

@@ -1,5 +1,5 @@
const fetch = require('node-fetch'); const fetch = require('node-fetch');
const defaultEndpoint = 'http://u.reactnative.cn/api'; const defaultEndpoint = 'https://update.reactnative.cn/api';
let host = process.env.PUSHY_REGISTRY || defaultEndpoint; let host = process.env.PUSHY_REGISTRY || defaultEndpoint;
const fs = require('fs'); const fs = require('fs');
import request from 'request'; import request from 'request';