Replies: 2 comments 7 replies
-
Use Next.js 13+ App Router (if not already) - it handles layout generation more predictably Add to .gitignore any unwanted layout files that get created: (except your intentional ones)Goodluck! |
Beta Was this translation helpful? Give feedback.
7 replies
-
@salemmohdmohd if you point to the source i might take a look |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
When i have a dev server running, every single time i save the root layout, nextjs creates a layout file in the directory of the page i have open in the browser. ...for the split second my editor is saving the file to the fs.
Is there a way to prevent nextjs from ever creating layouts?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions