mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-17 17:31:53 -05:00
Deploy frontend through render.yaml (#421)
* addin' frontend to render.yaml 🐂 * settin' node version 🐀 * tweakin' build step 🐾 * alt specification of graphql endpoint 🦡 * no interpolation in render.yaml 🌮 * tryin' static specification 🧁 * printin' URI 🖨 * pushin' just to see the value 🚡 * printin' the right value 💅 * debuggin' hasura 🐜 * tryin' to capture port 🚢 * tryin' w/o port 🌅 * redeployin' altered render.yaml 🥦 * resettin' yarn.lock 🔒 * fixin' name preface so it is passed 🏀
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
export const CONFIG = {
|
||||
graphqlURL:
|
||||
process.env.NEXT_PUBLIC_GRAPHQL_URL || 'http://localhost:8080/v1/graphql',
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user