Fix Mapbox web bootstrap
Build and deploy Flutter Web / build (push) Successful in 5m23s

This commit is contained in:
Ruslan Bakiev
2026-06-24 10:15:25 +07:00
parent 6552c915a8
commit 5305a1d487
3 changed files with 9 additions and 0 deletions
+5
View File
@@ -42,6 +42,11 @@ else
MAPBOX_STYLE="${MAPBOX_STYLE:-mapbox/standard}" MAPBOX_STYLE="${MAPBOX_STYLE:-mapbox/standard}"
fi fi
if [ -z "$MAPBOX_ACCESS_TOKEN" ]; then
echo "MAPBOX_ACCESS_TOKEN is required." >&2
exit 1
fi
cat >"$config_path" <<EOF cat >"$config_path" <<EOF
window.__MAPFLOW_CONFIG__ = { window.__MAPFLOW_CONFIG__ = {
mapboxAccessToken: $(json_string "$MAPBOX_ACCESS_TOKEN"), mapboxAccessToken: $(json_string "$MAPBOX_ACCESS_TOKEN"),
+2
View File
@@ -33,6 +33,8 @@
<title>MapFlow</title> <title>MapFlow</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<link href="https://api.mapbox.com/mapbox-gl-js/v3.25.0/mapbox-gl.css" rel="stylesheet">
<script src="https://api.mapbox.com/mapbox-gl-js/v3.25.0/mapbox-gl.js"></script>
<script src="https://telegram.org/js/telegram-web-app.js"></script> <script src="https://telegram.org/js/telegram-web-app.js"></script>
<style> <style>
html, html,
+2
View File
@@ -19,6 +19,8 @@
<title>MapFlow</title> <title>MapFlow</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
<link href="https://api.mapbox.com/mapbox-gl-js/v3.25.0/mapbox-gl.css" rel="stylesheet">
<script src="https://api.mapbox.com/mapbox-gl-js/v3.25.0/mapbox-gl.js"></script>
<style> <style>
#sw-loading { #sw-loading {
background: #05030B !important; background: #05030B !important;