Files
please-pay-me/context/2026-09-20_02-45-00_yandex-unavailable-toast.md
T
2026-09-21 04:06:43 +03:00

12 lines
738 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-09-20 — Почему «Яндекс недоступен»
Тост шёл из `_yandex == null`: `GET /api/auth/providers` не вызывался,
потому что `AppConfig.fromEnvironment()` читает только `--dart-define`.
Запуск из IDE без `run.ps1` оставлял URL пустым, ошибку глотали.
На проде `/api/auth/providers` уже отдаёт `enabled: true`.
Фикс: `main()` читает `mobile/.env` с диска (dart-define по-прежнему
главнее). По тапу провайдеры перезапрашиваются, в тосте — реальная
причина. На Windows WebView нет — отдельное сообщение.