mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: custom server url in application (#3996)
* chore:test * chore: update ui * feat: set appflowy cloud url * chore: add self host docs * fix: save user * fix: sign out when authenticator not match * fix: sign out when authenticator not match * fix: db lock * chore: remove unuse env file * test: disable supabase cloud test * test: disable supabase cloud test * chore: fix save
This commit is contained in:
@ -25,13 +25,7 @@ impl AppFlowyDartConfiguration {
|
||||
pub fn write_env_from(env_str: &str) {
|
||||
let configuration = Self::from_str(env_str);
|
||||
configuration.cloud_type.write_env();
|
||||
let is_valid = configuration.appflowy_cloud_config.write_env().is_ok();
|
||||
// Note on Configuration Priority:
|
||||
// If both Supabase config and AppFlowy cloud config are provided in the '.env' file,
|
||||
// the AppFlowy cloud config will be prioritized and the Supabase config ignored.
|
||||
// Ensure only one of these configurations is active at any given time.
|
||||
if !is_valid {
|
||||
let _ = configuration.supabase_config.write_env();
|
||||
}
|
||||
configuration.appflowy_cloud_config.write_env();
|
||||
configuration.supabase_config.write_env();
|
||||
}
|
||||
}
|
||||
|
@ -55,14 +55,8 @@ pub extern "C" fn init_sdk(data: *mut c_char) -> i64 {
|
||||
let configuration = AppFlowyDartConfiguration::from_str(serde_str);
|
||||
|
||||
configuration.cloud_type.write_env();
|
||||
let is_valid = configuration.appflowy_cloud_config.write_env().is_ok();
|
||||
// Note on Configuration Priority:
|
||||
// If both Supabase config and AppFlowy cloud config are provided in the '.env' file,
|
||||
// the AppFlowy cloud config will be prioritized and the Supabase config ignored.
|
||||
// Ensure only one of these configurations is active at any given time.
|
||||
if !is_valid {
|
||||
let _ = configuration.supabase_config.write_env();
|
||||
}
|
||||
configuration.appflowy_cloud_config.write_env();
|
||||
configuration.supabase_config.write_env();
|
||||
|
||||
let log_crates = vec!["flowy-ffi".to_string()];
|
||||
let config = AppFlowyCoreConfig::new(
|
||||
|
Reference in New Issue
Block a user