Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: update launch option

appflowy9012494e1f12
diff --git a/frontend/app_flowy/.vscode/launch.json b/frontend/app_flowy/.vscode/launch.json
index 7026e78581..7dae433cf9 100644
--- a/frontend/app_flowy/.vscode/launch.json
+++ b/frontend/app_flowy/.vscode/launch.json
@@ -11,8 +11,7 @@
"type": "dart",
"preLaunchTask": "build_flowy_sdk",
"env":{
- "RUST_LOG":"info",
- "INTEGRATION_ENV":"develop",
+ "RUST_LOG":"debug"
},
"cwd": "${workspaceRoot}"
},
@@ -23,8 +22,7 @@
"type": "dart",
"preLaunchTask": "build_flowy_sdk",
"env":{
- "RUST_LOG":"trace",
- "INTEGRATION_ENV":"develop",
+ "RUST_LOG":"trace"
},
"cwd": "${workspaceRoot}"
},
diff --git a/frontend/app_flowy/lib/startup/startup.dart b/frontend/app_flowy/lib/startup/startup.dart
index d5f618183e..995060bb0c 100644
--- a/frontend/app_flowy/lib/startup/startup.dart
+++ b/frontend/app_flowy/lib/startup/startup.dart
@@ -1,6 +1,7 @@
import 'dart:io';
import 'package:app_flowy/startup/tasks/prelude.dart';
+import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:get_it/get_it.dart';
import 'package:app_flowy/workspace/infrastructure/deps_resolver.dart';
@@ -115,8 +116,8 @@ IntegrationEnv integrationEnv() {
if (Platform.environment.containsKey('FLUTTER_TEST')) {
return IntegrationEnv.test;
}
- const value = String.fromEnvironment('INTEGRATION_ENV');
- if (value == 'release') {
+
+ if (kReleaseMode) {
return IntegrationEnv.release;
}
diff --git a/frontend/rust-lib/flowy-sdk/src/lib.rs b/frontend/rust-lib/flowy-sdk/src/lib.rs
index f3582ad92b..779af9a53d 100644
--- a/frontend/rust-lib/flowy-sdk/src/lib.rs
+++ b/frontend/rust-lib/flowy-sdk/src/lib.rs
@@ -38,7 +38,6 @@ pub struct FlowySDKConfig {
impl fmt::Debug for FlowySDKConfig {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("FlowySDKConfig")
- .field("name", &self.name)
.field("root", &self.root)
.field("server_config", &self.server_config)
.finish()