exclude the generated assets from the routes #271
Replies: 5 comments
-
Based on the linked docs, it seems like this writes the generated files outside of the |
Beta Was this translation helpful? Give feedback.
-
maybe in the implementation of getRecursiveTree or contextModuleToFileNodes we could add a filter for an excludePaths array, but we would also need to remove these files from the bundle |
Beta Was this translation helpful? Give feedback.
-
any news on this? |
Beta Was this translation helpful? Give feedback.
-
This would be awesome. I like to put my graphql files close to where they are used. |
Beta Was this translation helpful? Give feedback.
-
any chance there are any updates? |
Beta Was this translation helpful? Give feedback.
-
the generated folder is from relay compiler, which always create the codegen close to the route which uses GraphQL query.
the way next.js handles this is to add a property for the ignored folder name:
https://nextjs.org/docs/advanced-features/compiler#relay
Can we have something like this here?
I think, maybe we can make it an array, so we can have multiple paths being ignored rather than just ignoring the codegen folder.
Beta Was this translation helpful? Give feedback.
All reactions