use real env variables
This commit is contained in:
parent
7c93eedbb4
commit
d09eeb9d01
@ -1,7 +1,6 @@
|
|||||||
import { env } from "@/utils/env";
|
|
||||||
import { GitHub } from "arctic";
|
import { GitHub } from "arctic";
|
||||||
|
|
||||||
export const github = new GitHub(env.OAUTH.CLIENT_ID, env.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",
|
enterpriseDomain: "https://git.i.mercedes-benz.com",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
import { z } from "zod";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Environment variables
|
|
||||||
*/
|
|
||||||
export const env = {
|
|
||||||
OAUTH: {
|
|
||||||
CLIENT_ID: z.string().parse(process.env.OAUTH_CLIENT_ID ?? ""),
|
|
||||||
CLIENT_SECRET: z.string().parse(process.env.OAUTH_CLIENT_SECRET ?? ""),
|
|
||||||
},
|
|
||||||
};
|
|
Loading…
x
Reference in New Issue
Block a user