fix: update production app configuration
This commit is contained in:
+9
-6
@@ -2,9 +2,15 @@
|
||||
|
||||
Flutter client for `觅爻签问`.
|
||||
|
||||
## Debug startup with backend injection
|
||||
## Backend URL
|
||||
|
||||
This app supports injecting backend URL at startup (same pattern as social-app):
|
||||
Default backend URL:
|
||||
|
||||
```text
|
||||
https://api.meeyao.com
|
||||
```
|
||||
|
||||
This app also supports injecting backend URL at startup (same pattern as social-app):
|
||||
|
||||
- Dart read path: `lib/core/config/env.dart`
|
||||
- Injection key: `BACKEND_URL`
|
||||
@@ -21,7 +27,4 @@ flutter run --dart-define=BACKEND_URL=http://192.168.1.100:5775
|
||||
./tool/run-dev.sh --backend-url http://192.168.1.100:5775
|
||||
```
|
||||
|
||||
If `BACKEND_URL` is not provided, fallback is:
|
||||
|
||||
- Android emulator: `http://10.0.2.2:5775`
|
||||
- Others: `http://localhost:5775`
|
||||
If `BACKEND_URL` is not provided, the app uses the production backend URL above.
|
||||
|
||||
Reference in New Issue
Block a user