Sitecore NextJS
sample generates the *.d.ts
file. The size of this file is pretty big. It uses graphql-let behind the scene.
https://github.com/Sitecore/jss/tree/release/19.0.0/samples/nextjs/src
Keen understand best practices around this code gen:
- Does every component that has
graphQL
query file needs to generate this giant*.d.ts
file? - Is there any best practice around centralizing this generated code and re-use or is it tightly coupled to a specific
*.graphql
file? - Do we need to generate this file all
*.grapql
files or is it case by case?