Skip to content

Commit

Permalink
Showing 7 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@ REACT_APP_ID=

# Hasura
REACT_APP_API_BASE_ROOT=
REACT_APP_GRAPHQL_ENDPOINT=
REACT_APP_GRAPHQL_PH_ENDPOINT=
REACT_APP_GRAPHQL_RH_ENDPOINT=
REACT_APP_GRAPHQL_WS_ENDPOINT=


3 changes: 1 addition & 2 deletions .env.development
Original file line number Diff line number Diff line change
@@ -4,9 +4,8 @@ REACT_APP_ID=demo

# Hasura
REACT_APP_API_BASE_ROOT=https://demo.lodestar-dev.cc/api/v1
REACT_APP_GRAPHQL_ENDPOINT=https://hdb-dev.kolable.com/v1/graphql
REACT_APP_GRAPHQL_RH_ENDPOINT=https://rhdb-dev.kolable.com/v1/graphql
REACT_APP_GRAPHQL_PH_ENDPOINT=https://phdb-dev.kolable.com/v1/graphql
REACT_APP_GRAPHQL_RH_ENDPOINT=https://rhdb-dev.kolable.com/v1/graphql
REACT_APP_GRAPHQL_WS_ENDPOINT=wss://hasura-dev.kolable.com/v1/graphql

# AWS
1 change: 0 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Hasura
REACT_APP_API_BASE_ROOT=/api/v1
REACT_APP_GRAPHQL_ENDPOINT=https://hdb.kolable.com/v1/graphql
REACT_APP_GRAPHQL_PH_ENDPOINT=https://phdb.kolable.com/v1/graphql
REACT_APP_GRAPHQL_WS_ENDPOINT=wss://hdb.kolable.com/v1/graphql

1 change: 0 additions & 1 deletion .env.staging
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Hasura
REACT_APP_API_BASE_ROOT=/api/v1
REACT_APP_GRAPHQL_ENDPOINT=https://hdb-dev.kolable.com/v1/graphql
REACT_APP_GRAPHQL_PH_ENDPOINT=https://phdb-dev.kolable.com/v1/graphql
REACT_APP_GRAPHQL_RH_ENDPOINT=https://rhdb-dev.kolable.com/v1/graphql
REACT_APP_GRAPHQL_WS_ENDPOINT=wss://hasura-dev.kolable.com/v1/graphql
2 changes: 1 addition & 1 deletion codegen.ts
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import { CodegenConfig } from '@graphql-codegen/cli'

console.log(process.env.NODE_ENV)
const config: CodegenConfig = {
schema: process.env.REACT_APP_GRAPHQL_ENDPOINT,
schema: process.env.REACT_APP_GRAPHQL_PH_ENDPOINT,
documents: ['src/**/*.ts', 'src/**/*.tsx'],
generates: {
'./src/hasura.d.ts': {
4 changes: 2 additions & 2 deletions src/components/auth/RegisterSection.tsx
Original file line number Diff line number Diff line change
@@ -164,9 +164,9 @@ const RegisterSection: React.VFC<RegisterSectionProps> = ({ form, isBusinessMemb
await uploadFile(path, companyPictureFile, authToken)
}

process.env.REACT_APP_GRAPHQL_ENDPOINT &&
process.env.REACT_APP_GRAPHQL_PH_ENDPOINT &&
Axios.post(
process.env.REACT_APP_GRAPHQL_ENDPOINT,
process.env.REACT_APP_GRAPHQL_PH_ENDPOINT,
{
query: `mutation UPDATE_MEMBER_INFO($memberId: String!, $setMember: member_set_input, $memberProperties: [member_property_insert_input!]!) {
update_member(where: { id: { _eq: $memberId } }, _set: $setMember) {
4 changes: 2 additions & 2 deletions src/components/common/SignupPropertySection.tsx
Original file line number Diff line number Diff line change
@@ -81,9 +81,9 @@ const SignupPropertySection: React.VFC<SignPropertySectionProps> = ({ form, onMo
value: value,
}
})
process.env.REACT_APP_GRAPHQL_ENDPOINT &&
process.env.REACT_APP_GRAPHQL_PH_ENDPOINT &&
Axios.post(
process.env.REACT_APP_GRAPHQL_ENDPOINT,
process.env.REACT_APP_GRAPHQL_PH_ENDPOINT,
{
query: `mutation UPDATE_MEMBER_INFO($memberId: String!, $name: String, $memberProperties: [member_property_insert_input!]!) {
update_member(where: {id: {_eq: $memberId}}, _set: {name: $name}) {

0 comments on commit c1fd434

Please sign in to comment.