diff --git a/packages/api-server/src/plugins/lambdaLoader.ts b/packages/api-server/src/plugins/lambdaLoader.ts index 2fd5797eb0dc..5f406ae856f6 100644 --- a/packages/api-server/src/plugins/lambdaLoader.ts +++ b/packages/api-server/src/plugins/lambdaLoader.ts @@ -106,8 +106,6 @@ export const fetchRequestHandler = async ( reply, }) - console.log(`👉 \n ~ file: lambdaLoader.ts:99 ~ response:`, response) - response.headers.forEach((value, key) => { reply.header(key, value) }) diff --git a/packages/api-server/src/plugins/withFunctions.ts b/packages/api-server/src/plugins/withFunctions.ts index bb07bbe6af28..32fa546b036c 100644 --- a/packages/api-server/src/plugins/withFunctions.ts +++ b/packages/api-server/src/plugins/withFunctions.ts @@ -35,7 +35,7 @@ const withFunctions = async ( await configureFastify(fastify, { side: 'api', ...options }) } - fastify.all(`/fetchReq`, fetchRequestHandler) + fastify.all(`/fetchReq/:routeName`, fetchRequestHandler) // fastify.all(`${apiRootPath}:routeName`, createServerAdapter(genericRequestHandler)) fastify.all(`${apiRootPath}:routeName`, lambdaRequestHandler)