-
Notifications
You must be signed in to change notification settings - Fork 85
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
refactor(eas-cli): allow Expo Router server deployments without client directory #2597
Conversation
32ed47b
to
100ef2f
Compare
✅ Thank you for adding the changelog entry! |
Size Change: -501 B (0%) Total Size: 52.9 MB
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2597 +/- ##
==========================================
- Coverage 52.00% 51.99% -0.01%
==========================================
Files 562 562
Lines 21194 21199 +5
Branches 4335 4338 +3
==========================================
Hits 11020 11020
- Misses 9292 9294 +2
- Partials 882 885 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@kitten the "wait until the deployment is ready before responding that the deployment is ready"-thing broke again with this change 🙈 When there is no
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving since implementation itself is fine.
Re. the timing issue, this ticket would resolve these problems for sure: https://linear.app/expo/issue/ENG-13544/implement-closing-request-for-upload-logic
But weirdly enough, I can't spot any deferred logic in here that would otherwise cause this. So, not sure why this timing issue is happening
The mystery has been solved by @kitten, it's pending merge & deploy. Going to merge this PR as is; the erroneous case should be fixed by the pending PR. |
…t directory (#2597) * refactor(eas-cli): allow Expo Router server deployments without client directories * docs: fix changelog entry
Why
Previously, we checked on the existence of both
/dist/client
and/dist/server
to enable a deployment for API routes. With upcoming changes in Expo Router, we'd need to support a "server only" deployment. This means, we can't check/dist/client
as it might not exist.How
/dist/server/_expo/routes.json
to enable server deployments/dist/client
optional during uploadTest Plan
$ bun create expo ./test-server-only
$ cd ./test-server-only
app/test+api.ts
with:server
inapp.json
'sweb.output = server
.$ rm -rf ./dist/client
$ easd deploy