We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2492e8 commit 4cd8facCopy full SHA for 4cd8fac
admin/src/main.rs
@@ -4,7 +4,15 @@ use shuttle_admin::{args::Args, run};
4
async fn main() {
5
tracing_subscriber::fmt::init();
6
7
- let args: Args = clap::Parser::parse();
+ let mut args: Args = clap::Parser::parse();
8
+ // don't use an override if production is targetted
9
+ if args
10
+ .api_env
11
+ .as_ref()
12
+ .is_some_and(|e| e == "prod" || e == "production")
13
+ {
14
+ args.api_env = None;
15
+ }
16
17
run(args).await
18
}
0 commit comments