mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-09 07:18:29 -05:00
[PR #10417] [MERGED] build: load the proxy from the system env for Pyodide to download packages #9323
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/10417
Author: @hangxingliu
Created: 2/20/2025
Status: ✅ Merged
Merged: 2/20/2025
Merged by: @tjbck
Base:
dev← Head:liu/fix-build-proxy📝 Commits (1)
3ae7302build: load the proxy from the system env for Pyodide to download packages #6234📊 Changes
3 files changed (+43 additions, -0 deletions)
View changed files
📝
package-lock.json(+10 -0)📝
package.json(+1 -0)📝
scripts/prepare-pyodide.js(+32 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Building this project will fail in a network environment that could only access internet through a specified network proxy. Because there is a step in
npm run builddoesn't respect network proxy configs in system environment variables just like what people were discussing in the post #6234 .Fixed
A function for initializing the global HTTP/HTTPS request agent has been added into the script
scripts/prepare-pyodide.js. This function will only initialize this global request agent when there are any available proxy configs in environment variables.To implement this feature, an Node.js official package named undici needs to be added as a
devDependencies.Additional Information
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.