Skip to content
FlightStack Docs
Sign in Start free

Build Web Job | FlightStack

Compiles your Flutter app for the web and uploads the resulting bundle as an artifact for the Deploy Web job (or for download).

Step ref: flightstack/build-web@1.0.0.

  • Any platform agent (web builds run on macOS, Linux, or Windows).
  • Flutter SDK with web enabled. The agent verifies this at registration time.
OptionDescriptionDefault
Build Moderelease, profile, debugrelease
TargetEntry-point filelib/main.dart
Renderercanvaskit, html, or autoauto
Base hrefURL path the app is served from (e.g. /app/)/
PWA strategyoffline-first, noneoffline-first
FlavorFlutter flavor (--flavor)
Dart definesList of KEY=value injected at build time
Source mapsEmit source maps for release buildsfalse
Terminal window
flutter build web \
--release \
--web-renderer canvaskit \
--base-href "/" \
--pwa-strategy offline-first \
--dart-define=ENV=prod
ArtifactLocation
Web bundlebuild/web/ (zipped)

The bundle is uploaded as web-release.zip and is consumed downstream by Deploy Web or any custom shell step.

┌──────────┐ ┌───────────┐ ┌────────────┐
│ On Push │───▶│ Build Web │───▶│ Deploy Web │
└──────────┘ └───────────┘ └────────────┘

“Web is not enabled for this Flutter SDK” The agent needs flutter config --enable-web. Re-register the agent so its capability is updated, or run flightstack agent doctor.

Slow CanvasKit cold start Switch to --web-renderer html for marketing pages; use canvaskit for heavy graphics.

  • Deploy Web — push the bundle to Firebase Hosting
  • Variables — wire dart-define from secrets