Repository navigation
fix(cli): Expo icon fonts 500 behind the app-server proxy; exclude all of .codeam/ - #1033
Merged
Merged
Conversation
…l of .codeam/ On the owner's codespace (2.76.51) the Remix export rendered and reached its server, but every icon was a box: the browser fetches Metro's /assets/?unstable_path=…Feather.ttf with an Origin header, the proxy rewrote Host to localhost:<port> and kept the public Origin, and Expo's dev middleware answers a foreign Origin with a 500. A same-origin Origin now follows the Host to the dev server's own (cross-origin ones untouched), for HTTP and websockets. .git/info/exclude now lists /.codeam/ whole: git never hides a tracked file, so a committed .codeam/preview.json stays visible, and the detection cache we write ourselves is no change of the user's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why
Live check of v2.76.51 on the owner's codespace (Pasito). The app rendered,
__REMIX_SERVER_BASE__was set, and register/login went through wrangler with D1 persistence. But every icon showed as a box:/assets/?unstable_path=…Feather.ttfanswered 500. The browser sendsOrigin; the proxy rewroteHosttolocalhost:<port>and left the publicOrigin, and Expo's dev middleware rejects a foreign origin with a 500 (default-src 'none'). Verified on the box: public Origin gives 500,http://localhost:8081gives 200.The
.git/info/excludelines/.codeam/*+!/.codeam/preview.jsonstill left our auto-writtenpreview.jsonuntracked.What
devRequestHeaders: a same-originOriginfollowsHostto the dev server's own origin. Cross-origin is untouched. Applied to HTTP and websockets./.codeam/whole. git never hides a tracked file, so a committedpreview.jsonstays visible.Tests
remix-app-server+missing-imports-bundle-health: 23 passed, including a live proxy check that the dev server receives the localhost origin.tscis clean.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.