use process env
This commit is contained in:
parent
9a0a4e7cf4
commit
c24fa305a4
@ -1,9 +1,4 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
serverRuntimeConfig: {
|
||||
OAUTH_CLIENT_ID: process.env.OAUTH_CLIENT_ID,
|
||||
OAUTH_CLIENT_SECRET: process.env.OAUTH_CLIENT_SECRET,
|
||||
},
|
||||
};
|
||||
const nextConfig = {};
|
||||
|
||||
export default nextConfig;
|
||||
|
@ -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",
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user