Files
TheGame/packages/web/config.ts
Pacien Boisson dfff04ebaa [Quests] Frontend (#437)
* squash frontend changes

* Style quest explorer

* Style quest page

* Dates

* Dates

* Typecheck

* Prettier

* Fix create page layout

* Update only OPEN quests

* Repetition info

* Fix create quest errors

* Quest form Textarea

* Quest form Textarea

* Truncate texts

* Redirect if user not logged in

* Tooltips

* Factorize skills tags

* fix username in completions

* Metafam as default guild on creation

* Layouts

* Remove todo

* cooldown

* Rename to "claim quest"

* squash frontend changes

* Style quest explorer

* Style quest page

* Dates

* Dates

* Typecheck

* Prettier

* Fix create page layout

* Update only OPEN quests

* Repetition info

* Fix create quest errors

* Quest form Textarea

* Quest form Textarea

* Truncate texts

* Redirect if user not logged in

* Tooltips

* Factorize skills tags

* fix username in completions

* Metafam as default guild on creation

* Layouts

* Remove todo

* cooldown

* Rename to "claim quest"

* Move ConfirmModal in ds

* Extract pSeed balance

* Fix "created by me" switch

* Reword complete quest

* Style quest form

* prettier

* lint
2021-04-08 15:32:27 +04:00

22 lines
649 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',
};