Repository navigation
Fix/bdweb frontend static path - #263
Anurag07-crypto wants to merge 1 commit into
Conversation
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| ErrorProne | 6 high |
| Security | 3 minor 5 high 6 critical 11 medium |
🟢 Metrics 209 complexity · 6 duplication
Metric Results Complexity 209 Duplication 6
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
Thank you, @Anurag07-crypto, for the reply on #221, and for digging in so quickly. A path bug that makes Two things before this can be reviewed: 1. The base branch. The bdweb editor lives on the 2. How it fits #221. That issue is a test-and-report task: run bdweb end to end from a clean checkout of Your PR checklist also mentions an assigned issue with no other open PR for it, which is fine: #221 is assigned to you. Thanks again, and welcome to bdsim. |
Fixes #221
Summary
Corrects the frontend build directory path in
src/bdweb/backend/server.py.Previously, the path used an extra parent-directory traversal, resolving to
src/frontend/buildinstead of the actualsrc/bdweb/frontend/builddirectory.As a result, FastAPI could not locate and mount the built frontend, causing requests to
http://localhost:8000/to return404 Not Found.Updated the path to resolve correctly and remain consistent with the frontend path resolution in
src/bdweb/backend/__main__.py.Checklist
pyproject.tomlclassifiers (CI tests them all).