diff --git a/lib/lib.ts b/lib/lib.ts index 1702740..b4a5a09 100644 --- a/lib/lib.ts +++ b/lib/lib.ts @@ -143,9 +143,14 @@ export const it = testActor; */ const createStartStandbyFn = (standbyTask: StandbyTask) => { const { standbyUrl } = standbyTask; - return async ({ input }: Pick, 'input'>) => { - const response = await fetch(standbyUrl, { + return async ({ + input, + path = '', + headers = {}, + }: Pick, 'input'> & { path?: string; headers?: Record }) => { + const response = await fetch(standbyUrl + path, { headers: { + ...headers, Authorization: `Bearer ${apifyClient.token}`, }, method: 'POST',