mirror of
https://github.com/open-webui/docs.git
synced 2026-11-05 01:38:13 +00:00
[PR #1421] [CLOSED] docs: correct the development and logging pages against the Vite proxy, the build config and the JSON log formatters #1386
Labels
No labels
bug
documentation
documentation
duplicate
enhancement
enhancement
good first issue
good first issue
good first issue
help wanted
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/docs#1386
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/docs/pull/1421
Author: @silentoplayz
Created: 9/18/2026
Status: ❌ Closed
Base:
main← Head:docs/development-logging-pages📝 Commits (1)
8e102f0docs: correct the development and logging pages against the Vite proxy, the build config and the JSON log formatters📊 Changes
2 files changed (+13 additions, -9 deletions)
View changed files
📝
docs/getting-started/advanced-topics/development.md(+8 -6)📝
docs/getting-started/advanced-topics/logging.md(+5 -3)📄 Description
Summary
I compared the development and logging pages with the frontend build config, the dev scripts and the log formatters.
package.jsonallows Node.js up to 22.x, and the locked dependencies (pdfjs-distamong them) need 20.19 or later, so the requirement is 20.19+ on Node 20 or 22.13+ on Node 22 rather than 22.10 and up. The LAN-testing steps keep theCORS_ALLOW_ORIGINstep: the Vite dev server proxies/api,/ollama,/openai,/oauthand/ws, but Socket.IO still checks the browser'sOriginagainst that list (WEBUI_BACKEND_URLpoints the proxy elsewhere). Ports are changed withPORTandnpm run dev:5050(plus that port's origin inCORS_ALLOW_ORIGIN), not by editing config files. With no backend, the page redirects to a "Backend Required" error page rather than waiting, and/docsis served only withENV=dev.console.log,console.debugandconsole.errorunless built withENV=dev, so the frontend section now says so. The JSONerrorfield is an object withtype,messageandstacktrace, and the top-levelstacktraceonly appears on the few lines written before the Loguru sink starts. An unrecognisedGLOBAL_LOG_LEVELfalls back toINFO, andSRC_LOG_LEVELSis a legacy placeholder.Related issue or discussion
None.
Checklist
Notes for reviewers
Sources on
dev:package.json(engines, scripts),vite.config.ts(proxy,esbuild.pure),backend/dev.sh,main.py(docs_url),src/routes/+layout.svelteandsrc/routes/error/+page.svelte,utils/logger.py, andenv.py(JSONFormatter,GLOBAL_LOG_LEVEL,SRC_LOG_LEVELS).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.