mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-02 03:00:32 -04:00
Add NextJS environment vars and remove app-react from Render build
This commit is contained in:
@@ -7,3 +7,5 @@ DATABASE_NAME=metagame-db
|
||||
HASURA_GRAPHQL_ADMIN_SECRET=metagame_secret
|
||||
|
||||
HASURA_PORT=8080
|
||||
NEXT_PUBLIC_INFURA_ID=781d8466252d47508e177b8637b1c2fd
|
||||
NEXT_PUBLIC_GRAPHQL_URL=http://localhost:8080/v1/graphql
|
||||
|
||||
6
packages/web/config.ts
Normal file
6
packages/web/config.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export const CONFIG = {
|
||||
graphqlURL:
|
||||
process.env.NEXT_PUBLIC_GRAPHQL_URL || 'http://localhost:8080/v1/graphql',
|
||||
infuraId:
|
||||
process.env.NEXT_PUBLIC_INFURA_ID || '781d8466252d47508e177b8637b1c2fd',
|
||||
};
|
||||
20
render.yaml
20
render.yaml
@@ -36,21 +36,7 @@ services:
|
||||
type: web
|
||||
property: host
|
||||
|
||||
# Frontend (old)
|
||||
- type: web
|
||||
name: app-react
|
||||
env: static
|
||||
buildCommand: yarn app:build
|
||||
staticPublishPath: ./packages/app-react/build
|
||||
pullRequestPreviewsEnabled: true
|
||||
routes:
|
||||
- type: rewrite
|
||||
source: /*
|
||||
destination: /index
|
||||
envVars:
|
||||
- fromGroup: frontend
|
||||
|
||||
# NextJS Frontend (new)
|
||||
# NextJS Frontend
|
||||
- type: web
|
||||
name: web
|
||||
env: static
|
||||
@@ -71,7 +57,7 @@ envVarGroups:
|
||||
generateValue: true
|
||||
- name: frontend
|
||||
envVars:
|
||||
- key: REACT_APP_INFURA_ID
|
||||
- key: NEXT_PUBLIC_INFURA_ID
|
||||
sync: false
|
||||
- key: REACT_APP_GRAPHQL_URL
|
||||
- key: NEXT_PUBLIC_GRAPHQL_URL
|
||||
sync: false
|
||||
|
||||
Reference in New Issue
Block a user