Skip to content

Commit fe92191

Browse files
authored
Endpoint envAdding Environment variable for FLUTTERFLOW_ENDPOINT (#19)
1 parent cf6b551 commit fe92191

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/flutterflow_cli.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void main(List<String> args) async {
4040
endpoint =
4141
"https://api-${parsedArguments['environment']}.flutterflow.io/v1";
4242
} else {
43-
endpoint = kDefaultEndpoint;
43+
endpoint = Platform.environment['FLUTTERFLOW_ENDPOINT'] ?? kDefaultEndpoint;
4444
}
4545

4646
try {

0 commit comments

Comments
 (0)