Skip to content

Commit ec587c0

Browse files
committed
revert(feat): add conditional generation of fetch mode
This reverts commit 7d8881c. Reason: The conditional generation of fetch mode goes beyond the scope of this PR.
1 parent 1aceb15 commit ec587c0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/cli/src/generate/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -809,8 +809,6 @@ export async function generate(
809809
return `/**\n * @type {${type}}\n */\n`;
810810
}
811811

812-
const cors = true;
813-
814812
const queryFetcher = `
815813
${
816814
isJavascriptOutput
@@ -827,7 +825,8 @@ export async function generate(
827825
query,
828826
variables,
829827
operationName,
830-
}),${!cors ? '\nmode: "cors",' : ''}
828+
}),
829+
mode: "cors",
831830
...fetchOptions
832831
});
833832

0 commit comments

Comments
 (0)