add local base url
This commit is contained in:
parent
5cc1e33b29
commit
d3e17096c4
@ -167,7 +167,7 @@ const rvm = new Command('registry')
|
||||
.option('-s, --set <registry>', 'set registry')
|
||||
.action(async (opts) => {
|
||||
const config = getConfig();
|
||||
const defaultRegistry = ['https://kevisual.cn', 'https://kevisual.silkyai.cn', 'https://kevisual.xiongxiao.me', 'http://localhost:4005'];
|
||||
const defaultRegistry = ['https://kevisual.cn', 'https://kevisual.silkyai.cn', 'https://kevisual.xiongxiao.me', 'http://localhost:3005'];
|
||||
if (opts.list) {
|
||||
showList(defaultRegistry);
|
||||
return;
|
||||
@ -211,7 +211,7 @@ baseURL.addCommand(xiongxiao);
|
||||
const local = new Command('local').description('local registry').action(async (opts) => {
|
||||
console.log('local registry');
|
||||
const config = getConfig();
|
||||
const defaultRegistry = ['http://localhost:4005'];
|
||||
const defaultRegistry = ['http://localhost:3005'];
|
||||
writeConfig({ ...config, baseURL: defaultRegistry[0] });
|
||||
showList(defaultRegistry);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user