printin' URI 🖨

This commit is contained in:
Will Holcomb
2021-03-19 03:04:02 -04:00
committed by Alec LaLonde
parent 014581b061
commit f2c4f62565
3 changed files with 5 additions and 5 deletions

View File

@@ -1,12 +1,12 @@
export const CONFIG = {
graphqlURL: ((() => {
if (process.env.NEXT_PUBLIC_GRAPHQL_URL) {
return process.env.NEXT_PUBLIC_GRAPHQL_URL
return process.env.NEXT_PUBLIC_GRAPHQL_URL;
}
if (process.env.GRAPHQL_HOST) {
return `https://${process.env.GRAPHQL_HOST}.onrender.com/v1/graphql`
return `https://${process.env.GRAPHQL_HOST}.onrender.com/v1/graphql`;
}
return 'http://localhost:8080/v1/graphql'
return 'http://localhost:8080/v1/graphql';
})()),
infuraId:
process.env.NEXT_PUBLIC_INFURA_ID || '781d8466252d47508e177b8637b1c2fd',

View File

@@ -2,6 +2,8 @@ import { createClient } from 'urql';
import { CONFIG } from '../config';
console.info(`Client URI: ${CONFIG.graphqlURL}`)
export const client = createClient({
url: CONFIG.graphqlURL,
suspense: false,

View File

@@ -59,8 +59,6 @@ services:
name: hasura
type: web
property: host
- key: NEXT_PUBLIC_GRAPHQL_URL
value: https://hasura-x54i.onrender.com/v1/graphql
databases:
- name: metagame-db