mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-12 10:04:14 -05:00
[PR #16903] [CLOSED] chore: prevent static files deletion when frontend build does not exist #11073
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/16903
Author: @DmitriyAlergant
Created: 8/25/2025
Status: ❌ Closed
Base:
dev← Head:fix/prevent-static-deletion-without-build📝 Commits (2)
407dc9aMerge pull request #16507 from open-webui/devc4cef0cfix: prevent static file deletion when frontend build directory doesn't exist📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/open_webui/config.py(+1 -1)📄 Description
When running in development mode (npm run dev + dev.sh), if the frontend build directory does not yes exist, the backend was is deleting static files (mostly PNGs) during startup and not restoring them. This complicates git version control, showing this files deletion as a change (which is unwanted).
Pull Request Checklist
devbranch.Changelog Entry
Fixed
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.