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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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