Skip to content

Commit

Permalink
feat: add OST_GITHUB_CALLBACK_URL to turbo.json
Browse files Browse the repository at this point in the history
  • Loading branch information
avitorio committed Nov 26, 2023
1 parent 7ee0b6f commit f3ac05c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/outstatic/src/app/api/auth/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default async function GET() {
url.searchParams.append('scope', scopes.join(','))
url.searchParams.append('response_type', 'code')
if (process.env?.OST_GITHUB_CALLBACK_URL) {
url.searchParams.append('redirect_uri', process.env?.OST_GITHUB_CALLBACK_URL)
url.searchParams.append('redirect_uri', process.env.OST_GITHUB_CALLBACK_URL)
}

redirect(url.toString())
Expand Down
3 changes: 2 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"OST_REPO_OWNER",
"OST_TOKEN_SECRET",
"VERCEL_GIT_REPO_SLUG",
"OPENAI_API_KEY"
"OPENAI_API_KEY",
"OST_GITHUB_CALLBACK_URL"
]
}
}
Expand Down

0 comments on commit f3ac05c

Please sign in to comment.