From d2ed4886252a6ec74487bf8503236782876fd45b Mon Sep 17 00:00:00 2001 From: Johannes Obermair <48853629+johnnyomair@users.noreply.github.com> Date: Wed, 11 Dec 2024 10:31:03 +0100 Subject: [PATCH] Don't fail GraphQL Codegen if there are no documents (#591) --- admin/codegen.ts | 1 + site/codegen.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/admin/codegen.ts b/admin/codegen.ts index fd45e142e..ab7d87721 100644 --- a/admin/codegen.ts +++ b/admin/codegen.ts @@ -53,6 +53,7 @@ const config: CodegenConfig = { ], }, }, + ignoreNoDocuments: true, }; export default config; diff --git a/site/codegen.ts b/site/codegen.ts index 862757c46..37e00632b 100644 --- a/site/codegen.ts +++ b/site/codegen.ts @@ -38,6 +38,7 @@ const config: CodegenConfig = { config: pluginConfig, }, }, + ignoreNoDocuments: true, }; export default config;