Skip to content

Commit

Permalink
feat: 修改测试环境node镜像源
Browse files Browse the repository at this point in the history
  • Loading branch information
1739616529 committed Jan 11, 2024
1 parent 635aafd commit 1ff7ffe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/nsv/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ use root::{config::Config, core::{NsvCore, init::Init}};
async fn main() {
let cli = parse();
let mut config = Config::build();
if cfg!(debug_assertions) {
config.origin = "http://127.0.0.1:3000"

#[cfg(debug_assertions)]
{
config.origin = "http://127.0.0.1:3000";
}

let mut nsv_core = NsvCore::build(config);
nsv_core.init().await;
cli.subcmd.call(cli.config, &mut nsv_core).await
Expand Down

0 comments on commit 1ff7ffe

Please sign in to comment.