Document development-server and mounting caveats - #667
Merged
Conversation
Verified against a real setup: * The index.html rewriting covers every tag — Vite externalizes even the document's inline bootstrapping script * Vite's default CORS allows localhost origins only, so pages on a LAN IP or a custom domain need server.cors configured * Requests without Accept: text/html skip the mount_ember_app route and receive the raw index.html from the asset handler * render_ember_app emits a complete HTML document — point at the existing layout note from the first example Co-Authored-By: Claude Fable 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.
Summary
Four short notes, verified against a real setup:
index.htmlrewriting covers every tag — Vite externalizes even the document's inline bootstrapping scriptserver.corsconfigured invite.config.*Accept: text/html—curl's default, most health checkers — skip themount_ember_approute and receive the rawindex.htmlfrom the asset handlerrender_ember_app): point at the existing "disable the layout" note from the first example, where it is easy to missDocumentation only, no behavior changes.