Skip to content

Commit

Permalink
Set default fetch function for Octokit
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinstubbs committed Dec 19, 2023
1 parent fd9b9ac commit 11c7beb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/cli/src/lib/downloadTemplateDirectory.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import { mkdir, writeFile } from "fs/promises";
import path from "path";
import axios from "axios";
import fetch from "node-fetch";
import { Octokit } from "octokit";

const octokit = new Octokit();
const octokit = new Octokit({
request: {
fetch,
},
});

const owner = "pantheon-systems";
const repo = "pantheon-content-cloud-sdk";
Expand Down

0 comments on commit 11c7beb

Please sign in to comment.