Use colocated public directories for browser assets#11616
Draft
brookslybrand wants to merge 1 commit into
Draft
Conversation
Contributor
Preview Build AvailableA preview build has been created for this PR. You can install it using: pnpm install "remix-run/remix#preview/pr-11616&path:packages/remix"This preview build will be updated automatically as you push new commits. |
brookslybrand
marked this pull request as draft
July 17, 2026 21:01
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.
This stacks on #11480 and explores using colocated
public/directories as the explicit boundary for browser-reachable app source. Features can keep their browser module graph beside its narrowest owner without recreating the app structure in a top-level assets directory or renaming every file.app/**/public/**through the asset server, withapp/routes.tsas the shared route-contract exception.app/public/entry.tsand the starter's interactive prompt button toapp/ui/public/prompt-button.tsx.public/static/for images, fonts, and other files served unchanged at root URLs.assetServer.getHref()so it follows asset-server routing and fingerprinting.Compiled browser source can now be organized by owner:
app/ public/ entry.ts actions/cart/ controller.tsx public/ cart-button.tsx format-price.ts