Skip to content

Commit 9b16106

Browse files
authored
refactor: rename deploy env vars (denoland#30393)
1 parent b77b0be commit 9b16106

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

cli/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ async fn initialize_tunnel(
870870
let _ = tools::deploy::get_token_entry()?.delete_credential();
871871
}
872872

873-
let token = if let Ok(token) = std::env::var("DENO_UNSTABLE_TUNNEL_TOKEN") {
873+
let token = if let Ok(token) = std::env::var("DENO_DEPLOY_TOKEN") {
874874
token
875875
} else {
876876
match tools::deploy::get_token_entry()?.get_password() {
@@ -894,8 +894,8 @@ async fn initialize_tunnel(
894894
};
895895

896896
let (org, app) = if let (Ok(org), Ok(app)) = (
897-
std::env::var("DENO_UNSTABLE_TUNNEL_ORG"),
898-
std::env::var("DENO_UNSTABLE_TUNNEL_APP"),
897+
std::env::var("DENO_DEPLOY_ORG"),
898+
std::env::var("DENO_DEPLOY_APP"),
899899
) {
900900
(org, app)
901901
} else {

cli/tools/deploy.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ pub async fn deploy(mut flags: Flags) -> Result<i32, AnyError> {
1919
flags.node_modules_dir = Some(NodeModulesDirMode::None);
2020
flags.no_lock = true;
2121

22-
if let Ok(url) = std::env::var("DENO_DEPLOY_URL") {
23-
let args = flags.argv;
24-
let mut new_args = vec![String::from("--endpoint"), url];
25-
new_args.extend(args);
26-
flags.argv = new_args;
27-
}
28-
2922
let mut factory = CliFactory::from_flags(Arc::new(flags));
3023

3124
let maybe_specifier_override =

tests/specs/run/tunnel/test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ const child = new Deno.Command(Deno.execPath(), {
2222
"client.ts",
2323
],
2424
env: {
25-
DENO_UNSTABLE_TUNNEL_TOKEN: "token",
26-
DENO_UNSTABLE_TUNNEL_ORG: "org",
27-
DENO_UNSTABLE_TUNNEL_APP: "app",
25+
DENO_DEPLOY_TOKEN: "token",
26+
DENO_DEPLOY_ORG: "org",
27+
DENO_DEPLOY_APP: "app",
2828
},
2929
stdout: "inherit",
3030
stderr: "inherit",

0 commit comments

Comments
 (0)