Skip to content

Commit 8c0b73a

Browse files
committed
fix origin url
1 parent 6e69307 commit 8c0b73a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ async function graphqlHandler(request, env, ctx) {
7171
console.info(requestId);
7272
console.log(new Date().toLocaleString('en-US', { timeZone: 'UTC' }));
7373
console.log(`KVs pre-loaded: ${dataAPI.kvLoaded.join(', ') || 'none'}`);
74-
console.log('query', query);
75-
console.log('variables', variables);
76-
//console.log(query);
74+
//console.log('query', query);
75+
//console.log('variables', variables);
7776
if (request.headers.has('x-newrelic-synthetics')) {
7877
console.log('NewRelic health check');
7978
//return new Response(JSON.stringify({}), responseOptions);
@@ -108,6 +107,7 @@ async function graphqlHandler(request, env, ctx) {
108107
if (env.USE_ORIGIN === 'true') {
109108
try {
110109
const originUrl = new URL(request.url);
110+
originUrl.search = '';
111111
if (env.ORIGIN_OVERRIDE) {
112112
originUrl.host = env.ORIGIN_OVERRIDE;
113113
}

0 commit comments

Comments
 (0)