configure grpc
This commit is contained in:
@@ -4,8 +4,14 @@ mod app;
|
||||
mod components;
|
||||
mod env;
|
||||
mod route;
|
||||
mod rpc;
|
||||
mod views;
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
pub const RPC_HOST: &'static str = "http://localhost:8081";
|
||||
#[cfg(not(debug_assertions))]
|
||||
pub const RPC_HOST: &'static str = "https://grpc.aoba.app:8443";
|
||||
|
||||
fn main() {
|
||||
dioxus::launch(App);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user