We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3b1752 commit 4e48329Copy full SHA for 4e48329
1 file changed
lib/lib.ts
@@ -143,9 +143,14 @@ export const it = testActor;
143
*/
144
const createStartStandbyFn = <I, O>(standbyTask: StandbyTask) => {
145
const { standbyUrl } = standbyTask;
146
- return async ({ input }: Pick<RunOptions<I>, 'input'>) => {
147
- const response = await fetch(standbyUrl, {
+ return async ({
+ input,
148
+ path = '',
149
+ headers = {},
150
+ }: Pick<RunOptions<I>, 'input'> & { path?: string; headers?: Record<string, string> }) => {
151
+ const response = await fetch(standbyUrl + path, {
152
headers: {
153
+ ...headers,
154
Authorization: `Bearer ${apifyClient.token}`,
155
},
156
method: 'POST',
0 commit comments