Adding environment variable for graphql endpoint

This commit is contained in:
mati108@gmail.com committed 2018-10-17 11:39:24 -03:00
1 parent 373a35311a
commit 4d4db02af9
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
GRAPHQL_API_URL='https://dev-app.advancedalgos.net/graphql'
TEAMS_API_URL='https://teams-api.advancedalgos.net/graphql'
USERS_API_URL='https://users-api.advancedalgos.net/graphql'
KEYVAULT_API_URL='https://keyvault-api.advancedalgos.net/graphql'
+2 -2
View File
@@ -60,7 +60,7 @@ async function run () {
settings: { 'editor.theme': 'light' },
tabs: [
{
endpoint: 'http://localhost:4100/graphql',
endpoint: process.env.GRAPHQL_API_URL,
query: defaultQuery
}
]
@@ -72,7 +72,7 @@ async function run () {
app.use(cors())
app.listen(4100)
logger.info('Server running. Open http://localhost:4100/graphql to run queries.')
logger.info(`Server running. Open ${process.env.GRAPHQL_API_URL} to run queries.`)
}
try {