You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flutter run -d chrome --dart-define=REST_API_URL=<api-base-url>
172
+
flutter run -d chrome \
173
+
--dart-define=ENV=dev \
174
+
--dart-define=REST_API_URL=<api-base-url>
169
175
```
170
176
171
177
Do not use `npm test`; the root `package.json` script is a placeholder that intentionally fails.
172
178
173
179
## Build and Release
174
180
181
+
This repository uses trunk-based development with release branches:
182
+
183
+
```text
184
+
main = always test-deployable
185
+
release/* = store candidate
186
+
v* tag = production release source of truth
187
+
hotfix/* = emergency production repair
188
+
```
189
+
190
+
Normal changes should land through short-lived `feature/*` or `fix/*` branches
191
+
into `main`. Create `release/x.y.z` from `main` for final store QA, cut
192
+
`vX.Y.Z` tags from approved release branches, then merge the release branch back
193
+
to `main`. See [docs/Git.md](docs/Git.md) for the full branch and deployment
194
+
flow.
195
+
175
196
### Web
176
197
177
-
Preview and production web deployments are handled by GitHub Actions and Firebase Hosting. CI uses the `REST_API_URL` GitHub environment variable and builds with:
198
+
Preview and staging web deployments are handled by GitHub Actions and Firebase
199
+
Hosting. Pull requests build with `ENV=dev`; merges to `main` build with
200
+
`ENV=staging`. CI uses the `REST_API_URL` GitHub environment variable and builds
201
+
with:
178
202
179
203
```sh
180
-
flutter build web --release --dart-define=REST_API_URL=<api-base-url>
204
+
flutter build web --release \
205
+
--dart-define=ENV=staging \
206
+
--dart-define=REST_API_URL=<api-base-url>
181
207
```
182
208
183
209
Firebase Hosting deploys `build/web` to project `ontime-c63f1`.
0 commit comments