From 3ee199ccc9dc088060999b05cd551d4572f02521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yannick=20R=C3=B6dl?= <53003597+PlayAnyData@users.noreply.github.com> Date: Fri, 21 Mar 2025 07:33:07 +0100 Subject: [PATCH] Update usage-reporting.mdx (#6636) --- packages/web/docs/src/content/gateway/usage-reporting.mdx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/web/docs/src/content/gateway/usage-reporting.mdx b/packages/web/docs/src/content/gateway/usage-reporting.mdx index 08276740d..85fff0a40 100644 --- a/packages/web/docs/src/content/gateway/usage-reporting.mdx +++ b/packages/web/docs/src/content/gateway/usage-reporting.mdx @@ -76,15 +76,17 @@ import { defineConfig } from '@graphql-hive/gateway' export const gatewayConfig = defineConfig({ reporting: { type: 'hive', - // The registry token provided by Hive Registry + // The registry token provided by Hive Registry, defaulting to process.env.HIVE_USAGE_ACCESS_TOKEN token: '' - // The registry target which the usage data should be reported to + // The registry target which the usage data should be reported to defaulting to process.env.HIVE_USAGE_TARGET + // This can either be a slug following the format `$organizationSlug/$projectSlug/$targetSlug` (e.g `the-guild/graphql-hive/staging`) + // or an UUID (e.g. `a0f4c605-6541-4350-8cfe-b31f21a4bf80`). target: '' /** * Other options * * selfHosting: { ... }, - * clientInfo: { ... }, + * clientInfo(context) { ... }, * * See more in Hive Client reference */