Skip to content

Commit 90d7d89

Browse files
committed
try to delete dummy token
1 parent cbc5d8c commit 90d7d89

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/apify-client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ export function getApifyAPIBaseUrl(): string {
2424

2525
export class ApifyClient extends _ApifyClient {
2626
constructor(options: ApifyClientOptions) {
27+
// Remove dummy token for to prevent Dockerhub build task
28+
// that also starts the server to list tools failing
29+
if (options.token?.toLowerCase() === 'your-apify-token') {
30+
delete options.token;
31+
}
32+
2733
super({
2834
...options,
2935
baseUrl: getApifyAPIBaseUrl(),

0 commit comments

Comments
 (0)