fix: specify baseUrl in Octokit (#107) (#108)

This commit is contained in:
YutaSaito
2025-06-02 13:07:44 +09:00
committed by GitHub
parent 0cd44e50dd
commit f6e5597633

View File

@@ -9,7 +9,10 @@ export type Octokits = {
export function createOctokit(token: string): Octokits { export function createOctokit(token: string): Octokits {
return { return {
rest: new Octokit({ auth: token }), rest: new Octokit({
auth: token,
baseUrl: GITHUB_API_URL,
}),
graphql: graphql.defaults({ graphql: graphql.defaults({
baseUrl: GITHUB_API_URL, baseUrl: GITHUB_API_URL,
headers: { headers: {