fix(landing): кнопка «Войти» → /login#782
Merged
Merged
Conversation
/admin/ на проде проксируется на FastAPI, который отдаёт сломанный билд админки с base /full/ (остаток --mode demo). Из-за этого клик «Войти» давал белый экран. /login триггерит nginx SPA-fallback на /var/www/admin-ai-sekretar24/index.html (корректный билд с base /assets/), SPA нормально стартует и идёт на форму входа. То же изменение уже применено на сервере через sed — этот коммит синхронизирует репо. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Кнопки «Войти» на лендинге теперь ведут на
/loginвместо/admin/.Причина:
/admin/на проде проксируется на FastAPI, который отдаёт билд админки с base path/full/(видимо, остаток--mode demo). Запрашиваемые/full/assets/*.jsфайлы не существуют на диске → nginx SPA-fallback возвращает HTML → браузер ждёт JS, получает HTML → SPA не стартует → белый экран./login(любой несуществующий путь) триггерит nginx SPA-fallback на/var/www/admin-ai-sekretar24/index.html— корректный билд с base/assets/, SPA нормально загружается.Notes
sed— этот PR синхронизирует репо, чтобы следующий git pull не вернул баг.Test plan
🤖 Generated with Claude Code