mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-02 03:00:32 -04:00
printin' URI 🖨
This commit is contained in:
committed by
Alec LaLonde
parent
014581b061
commit
f2c4f62565
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user