mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 19:07:46 +01:00
refac
This commit is contained in:
@@ -17,7 +17,7 @@ class CustomBuildHook(BuildHookInterface):
|
||||
"NodeJS `npm` is required for building Open Webui but it was not found"
|
||||
)
|
||||
stderr.write("### npm install\n")
|
||||
subprocess.run([npm, "install"], check=True) # noqa: S603
|
||||
subprocess.run([npm, "install", "--force"], check=True) # noqa: S603
|
||||
stderr.write("\n### npm run build\n")
|
||||
os.environ["APP_BUILD_HASH"] = version
|
||||
subprocess.run([npm, "run", "build"], check=True) # noqa: S603
|
||||
|
||||
Reference in New Issue
Block a user