Load Flutter runtime config from Vault
Build and deploy Flutter Web / build (push) Successful in 6m25s

This commit is contained in:
Ruslan Bakiev
2026-06-24 02:29:46 +07:00
parent c427801621
commit 6552c915a8
10 changed files with 83 additions and 32 deletions
@@ -0,0 +1,13 @@
import 'dart:js_interop';
@JS('__MAPFLOW_CONFIG__')
external _MapflowConfig? get _config;
extension type _MapflowConfig(JSObject _) implements JSObject {
external JSString? get mapboxAccessToken;
external JSString? get mapboxStyle;
}
String mapboxAccessToken() => _config?.mapboxAccessToken?.toDart ?? '';
String mapboxStyle() => _config?.mapboxStyle?.toDart ?? '';