27 lines
1008 B
TypeScript
27 lines
1008 B
TypeScript
const PROD = false as boolean;
|
|
|
|
export const USE_LOGGER = true as boolean;
|
|
|
|
export const CLIENT_ID = "Ov23lilAc5biyyRY0K1u";
|
|
|
|
export const HOST = PROD
|
|
? "github-stats-extended.vercel.app"
|
|
: "github-stats-extended-preview.vercel.app";
|
|
|
|
const REDIRECT_URI = `https://${HOST}/frontend`;
|
|
|
|
export const GITHUB_PRIVATE_AUTH_URL = `https://github.com/login/oauth/authorize?scope=user,repo&client_id=${CLIENT_ID}&redirect_uri=${REDIRECT_URI}/private`;
|
|
export const GITHUB_PUBLIC_AUTH_URL = `https://github.com/login/oauth/authorize?client_id=${CLIENT_ID}&redirect_uri=${REDIRECT_URI}/public`;
|
|
|
|
export const DEMO_USER = "anuraghazra";
|
|
export const DEMO_REPO = "anuraghazra/github-readme-stats";
|
|
export const DEMO_GIST = "bbfce31e0217a3689c8d961a356cb10d";
|
|
export const DEMO_WAKATIME_USER = "ffflabs";
|
|
|
|
window.process = {
|
|
env: {
|
|
FETCH_MULTI_PAGE_STARS: "10",
|
|
PAT_1: "placeholderPAT", // so the backend's retryer.js sees there is 1 PAT and sets `RETRIES` accordingly
|
|
},
|
|
} as (typeof window)["process"];
|