FastAPI 0.138.0: Frontend support and documentation updates
sdkengineerpython-web
feature patch
FastAPI version 0.138.0 introduces support for serving frontend applications directly from `app.frontend()` and `router.frontend()`. This release also includes numerous documentation improvements, translations, and internal fixes. The changes are relevant for developers using FastAPI to build web applications, particularly those integrating static frontend assets.
- →✨ Add support for app.frontend("/", directory="dist") and router.frontend("/", directory="dist"). PR #15800 by @tiangolo
- →Read the docs: Frontend
- →📝 Fix typo in release notes. PR #15807 by @tiangolo
- →📝 Add app.frontend() instructions to Agent Library Skill. PR #15805 by @tiangolo
- →📝 Update release notes link. PR #15802 by @tiangolo
Features (2) ›
- ✨ Add support for app.frontend("/", directory="dist") and router.frontend("/", directory="dist"). PR #15800 by @tiangolo
- Read the docs: Frontend
Maintenance (10) ›
- 📝 Fix typo in release notes. PR #15807 by @tiangolo
- 📝 Add app.frontend() instructions to Agent Library Skill. PR #15805 by @tiangolo
- 📝 Update release notes link. PR #15802 by @tiangolo
- ✏️ Update white space characters in bigger apps. PR #15801 by @tiangolo
- ✏️ Fix grammar, typos, and broken links in docs. PR #15694 by @YuriiMotov
- 🐛 Fix failing test, update format for raised errors. PR #15804 by @tiangolo
- 👷 Fix test-alls-green. PR #15803 by @tiangolo
- 🔧 Enable checking release-notes.md for typos. PR #15796 by @YuriiMotov
- 📝 Tweak wording about deploying to FastAPI Cloud. PR #15793 by @tiangolo
- 🔨 Use gpt-5.5 model in translate.py, specify -chat to avoid warnings. PR #15792 by @YuriiMotov
Read the original announcement →
https://github.com/fastapi/fastapi/releases/tag/0.138.0
Related releases
- FastAPI 0.137.2: New route context iterator and dependency updates FastAPI Releases ·
- FastAPI 0.137.0: Router internals refactored, new features enabled FastAPI Releases ·
- FastAPI 0.138.1: Internal tooling and dependency updates FastAPI Releases ·
- FastAPI 0.137.1: Typing and Path Operation Fixes FastAPI Releases ·
- FastAPI 0.139.0: Frontend Dependencies and Translation Updates FastAPI Releases ·
- Pydantic-AI v2.9.0: Security fix, GPT-5.6 models, usage command Pydantic AI Releases ·