Sitecore NextJS sample generates the *.d.ts file. The size of this file is pretty big. It uses graphql-let behind the scene.


Keen understand best practices around this code gen:

  1. Does every component that has graphQL query file needs to generate this giant *.d.ts file?
  2. Is there any best practice around centralizing this generated code and re-use or is it tightly coupled to a specific *.graphql file?
  3. Do we need to generate this file all *.grapql files or is it case by case?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.