mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
[PR #4257] [MERGED] fix: pdf gen static path resolution #8227
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/4257
Author: @thearyadev
Created: 8/1/2024
Status: ✅ Merged
Merged: 8/1/2024
Merged by: @tjbck
Base:
dev← Head:fix/pdf-gen-static-path📝 Commits (1)
b7ad470fix: static dir path resolution📊 Changes
1 file changed (+15 additions, -2 deletions)
View changed files
📝
backend/apps/webui/routers/utils.py(+15 -2)📄 Description
Changelog Entry
Description
when running in different environments, the static_path is different. This path is now 'determined' at runtime
Changed
Fixed
#4236
pdf gen fails because it cant find the static/fonts directory when installed using any method outside of docker (including in dev)
Additional Information
verified in:
pip installpip install -e .(dev)pip install/pip install -e .🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.