Hoist nextjs example lib/ and components/ out of app/#3811
Open
malewis5 wants to merge 1 commit into
Open
Conversation
Move the Next.js example's components/ and lib/ directories from under app/ to the project root, and replace relative imports with the @/ path alias. No behavior change — imports only, plus pure file moves. Verified: tsc --noEmit and next build both pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
5 tasks
benjaminsehl
approved these changes
Jun 18, 2026
benjaminsehl
left a comment
Member
There was a problem hiding this comment.
Thought I saw this already implemented in the last PR but definitely prefer this pattern. Thanks.
Author
I stacked 3810 on top of 3811 just to try and keep the commit history cleaner. |
andguy95
approved these changes
Jun 18, 2026
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.
What
Moves the Next.js example's
components/andlib/directories from underapp/to the project root, and replaces relative imports (../lib,../../components, …) with the@/path alias.Why
Keeps non-route modules out of the
app/routing tree and gives the example stable, refactor-proof import paths.Scope
Imports only, plus pure file moves — no behavior change. README and
proxy.tsreferences updated to match.Verification
tsc --noEmit✅next build✅ (all routes + proxy build)🤖 Generated with Claude Code