Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions invokeai/app/api/no_cache_staticfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

Static files include the javascript bundles, fonts, locales, and some images. Generated
images are not included, as they are served by a router.

Check failure on line 17 in invokeai/app/api/no_cache_staticfiles.py

View workflow job for this annotation

GitHub Actions / python-checks

Ruff (W293)

invokeai/app/api/no_cache_staticfiles.py:17:1: W293 Blank line contains whitespace
This class also implements proper SPA (Single Page Application) routing by serving index.html
for any routes that don't match static files, enabling client-side routing to work correctly
in production builds.
Expand All @@ -36,7 +36,7 @@
async def get_response(self, path: str, scope: Scope) -> Response:
"""
Override get_response to implement SPA routing.

Check failure on line 39 in invokeai/app/api/no_cache_staticfiles.py

View workflow job for this annotation

GitHub Actions / python-checks

Ruff (W293)

invokeai/app/api/no_cache_staticfiles.py:39:1: W293 Blank line contains whitespace
When a file is not found and html mode is enabled, serve index.html instead of raising a 404.
This allows client-side routing to work correctly in SPAs.
"""
Expand Down
Loading