docs: correct the development and logging pages against the Vite proxy, the build config and the JSON log formatters - #1421
Open
silentoplayz wants to merge 1 commit into
Conversation
…y, the build config and the JSON log formatters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
I compared the development and logging pages with the frontend build config, the dev scripts and the log formatters.
package.jsondeclares Node.js versions 18.13 through 22.x, not 22.10 and up. The LAN-testing steps told readers to add their origin toCORS_ALLOW_ORIGIN. The Vite dev server proxies/api,/ollama,/openai,/oauthand/ws, so the browser never crosses origins and no CORS change is needed (WEBUI_BACKEND_URLpoints the proxy elsewhere). Ports are changed withPORTandnpm run dev:5050, 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).