use process env

This commit is contained in:
Torben Haack
2024-10-10 14:01:19 +02:00
parent 9a0a4e7cf4
commit c24fa305a4
2 changed files with 2 additions and 9 deletions

View File

@ -1,8 +1,6 @@
import { GitHub } from "arctic";
import getConfig from "next/config";
const { serverRuntimeConfig } = getConfig();
export const github = new GitHub(serverRuntimeConfig.OAUTH_CLIENT_ID, serverRuntimeConfig.OAUTH_CLIENT_SECRET, {
export const github = new GitHub(process.env.OAUTH_CLIENT_ID as string, process.env.OAUTH_CLIENT_SECRET as string, {
enterpriseDomain: "https://git.i.mercedes-benz.com",
});