Skip to content

Commit d1e9982

Browse files
author
unknown
committed
docs(codegen): update localhostAdapter JSDoc to reflect NodeHttpAdapter approach
1 parent e4e20e8 commit d1e9982

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

graphql/codegen/src/types/config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,11 @@ export interface CliConfig {
201201
builtinNames?: BuiltinNames;
202202

203203
/**
204-
* Enable localhost fetch adapter for *.localhost subdomain routing.
205-
* When true, generates a localhost-fetch.ts that patches globalThis.fetch
206-
* to use node:http.request for *.localhost URLs, enabling local development
204+
* Enable NodeHttpAdapter for *.localhost subdomain routing.
205+
* When true, generates a node-fetch.ts with NodeHttpAdapter (implements GraphQLAdapter)
206+
* using node:http/node:https for requests, enabling local development
207207
* with subdomain-based routing (e.g. auth.localhost:3000).
208+
* No global patching — the adapter is passed to createClient via the adapter option.
208209
* @default false
209210
*/
210211
localhostAdapter?: boolean;

0 commit comments

Comments
 (0)