Fix production CLOG asset paths and Vite base-path routing #12
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority:P1
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/quasar#12
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?
Problem
The production frontend hosting path introduced in PR #3 is inconsistent.
frontend-asset-pathresolvesfrontend/dist/relative to thequasar-webASDF system source directory. Because the ASD file lives undersystems/, this points atsystems/frontend/dist/instead of the actual repository pathfrontend/dist/.The Vite build defaults to base path
/, while CLOG attempts to serve the application under/frontend/. Production builds therefore generate asset URLs that do not match the CLOG route. SPA fallback and nested-route handling are also not demonstrated.Found during review of PR #3.
Required changes
frontend/dist/from it./; or/frontend/.VITE_BASE_PATHduring production builds when using a non-root route.index.htmlfor browser routes without swallowing real asset 404s.404.html, service worker paths, manifest paths, and PWA scope match the chosen base path.Acceptance criteria
scripts/run-productionbuilds and starts the application from a fresh checkout.vite build.Related PR: #3