refactor: standardize backend URL environment variable naming #320
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
This PR standardizes the environment variable naming for the backend URL by replacing the inconsistent use of
PYTHON_BACKEND_HOSTwith the documentedSERVER_BASE_URLvariable.Problem
The codebase currently uses two different environment variable names for the same backend URL:
PYTHON_BACKEND_HOST- used only indeepwiki-open/src/app/api/wiki/projects/route.ts
Line 34 in 196b48f
SERVER_BASE_URL- used consistently throughout the rest of the codebase in multiple files.This inconsistency creates confusion and potential configuration issues.
Solution
src/app/api/wiki/projects/route.tsto useSERVER_BASE_URLinstead ofPYTHON_BACKEND_HOSThttp://localhost:8001) and serve the same purposedeepwiki-open/README.md
Line 322 in 196b48f
Testing
Impact
SERVER_BASE_URLin their environment configurationThis change improves code consistency and reduces potential confusion for developers and users configuring the application.