fix: update production app configuration

This commit is contained in:
qzl
2026-04-30 11:07:57 +08:00
parent 79d5d0638a
commit 98f4a8d07a
21 changed files with 84 additions and 80 deletions
+9 -6
View File
@@ -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.