mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-11 22:45:04 -05:00
22 lines
742 B
TypeScript
22 lines
742 B
TypeScript
export const CONFIG = {
|
|
graphqlURL: ((() => {
|
|
if (process.env.NEXT_PUBLIC_GRAPHQL_URL) {
|
|
return process.env.NEXT_PUBLIC_GRAPHQL_URL;
|
|
}
|
|
if (process.env.GRAPHQL_HOSTPORT) {
|
|
const [host, ...port] = (
|
|
process.env.GRAPHQL_HOSTPORT.split(':')
|
|
);
|
|
return `https://${host}.onrender.com:${port}/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',
|
|
};
|