New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(web): spa flag should correctly define redirect #22487
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 8c9c285. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
68b1a1f
to
9c9f545
Compare
9c9f545
to
b805437
Compare
b805437
to
8c9c285
Compare
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
The
@nx/web:file-server
executor does not set upspa
handling correctly. The current solution still causes the browser to throw a 404 which can cause unexpected behavior.Additionally, some of the packages that make use of the
@nx/web:file-server
were not settingspa
and thus deep linking would 404.Expected Behavior
The
spa
flag on@nx/web:file-server
should correctly redirect to index.html and not throw 404s.The packages that need
spa
from@nx/web:file-server
should define it in their target, or via their inferred targets.Related Issue(s)
Fixes #22418
Despite having the
ciWebServerCommand
set, theserve-static
target needs to havespa
working correctly.