mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-10 22:14:53 -05:00
25 lines
833 B
TypeScript
25 lines
833 B
TypeScript
export const CONFIG = {
|
|
graphqlURL: (() => {
|
|
const {
|
|
NEXT_PUBLIC_GRAPHQL_URL: url,
|
|
NEXT_PUBLIC_GRAPHQL_HOST: host,
|
|
} = process.env;
|
|
|
|
if (url) return url;
|
|
if (host) {
|
|
return `https://${host}.onrender.com/v1/graphql`;
|
|
}
|
|
return 'http://localhost:8080/v1/graphql';
|
|
})(),
|
|
infuraId:
|
|
process.env.NEXT_PUBLIC_INFURA_ID || '781d8466252d47508e177b8637b1c2fd',
|
|
openseaApiKey: process.env.NEXT_OPENSEA_API_KEY || undefined,
|
|
brightIdAppUrl:
|
|
process.env.NEXT_BRIGHTID_APP_URL || 'https://app.brightid.org',
|
|
brightIdNodeUrl:
|
|
process.env.NEXT_BRIGHTID_NODE_URL || 'http:%2f%2fnode.brightid.org',
|
|
publicUrl: process.env.NEXT_PUBLIC_VERCEL_URL || 'http://localhost:3000',
|
|
gaId: process.env.NEXT_PUBLIC_GA4_ID || undefined,
|
|
clarityId: process.env.NEXT_CLARITY_ID || undefined,
|
|
};
|