From 1cbb5052f17422ae1fb3939960968907d5ab9286 Mon Sep 17 00:00:00 2001 From: "Nathan.fooo" <86001920+appflowy@users.noreply.github.com> Date: Mon, 28 Oct 2024 17:21:34 +0800 Subject: [PATCH] chore: revert local host test setting (#942) --- libs/client-api-test/src/client.rs | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/libs/client-api-test/src/client.rs b/libs/client-api-test/src/client.rs index 908d6982..e37082fc 100644 --- a/libs/client-api-test/src/client.rs +++ b/libs/client-api-test/src/client.rs @@ -5,28 +5,28 @@ use std::env; use tracing::warn; use uuid::Uuid; // -// #[cfg(not(target_arch = "wasm32"))] -// lazy_static! { -// pub static ref LOCALHOST_URL: Cow<'static, str> = -// get_env_var("LOCALHOST_URL", "http://localhost:8000"); -// pub static ref LOCALHOST_WS: Cow<'static, str> = -// get_env_var("LOCALHOST_WS", "ws://localhost:8000/ws/v1"); -// pub static ref LOCALHOST_GOTRUE: Cow<'static, str> = -// get_env_var("LOCALHOST_GOTRUE", "http://localhost:9999"); -// } - -// Use following configuration when using local server with nginx -// #[cfg(not(target_arch = "wasm32"))] lazy_static! { pub static ref LOCALHOST_URL: Cow<'static, str> = - get_env_var("LOCALHOST_URL", "http://localhost"); + get_env_var("LOCALHOST_URL", "http://localhost:8000"); pub static ref LOCALHOST_WS: Cow<'static, str> = - get_env_var("LOCALHOST_WS", "ws://localhost/ws/v1"); + get_env_var("LOCALHOST_WS", "ws://localhost:8000/ws/v1"); pub static ref LOCALHOST_GOTRUE: Cow<'static, str> = - get_env_var("LOCALHOST_GOTRUE", "http://localhost/gotrue"); + get_env_var("LOCALHOST_GOTRUE", "http://localhost:9999"); } +// Use following configuration when using local server with nginx +// +// #[cfg(not(target_arch = "wasm32"))] +// lazy_static! { +// pub static ref LOCALHOST_URL: Cow<'static, str> = +// get_env_var("LOCALHOST_URL", "http://localhost"); +// pub static ref LOCALHOST_WS: Cow<'static, str> = +// get_env_var("LOCALHOST_WS", "ws://localhost/ws/v1"); +// pub static ref LOCALHOST_GOTRUE: Cow<'static, str> = +// get_env_var("LOCALHOST_GOTRUE", "http://localhost/gotrue"); +// } + // The env vars are not available in wasm32-unknown-unknown #[cfg(target_arch = "wasm32")] lazy_static! {