Skip to content

Commit 4e715ac

Browse files
committed
Fix ts + Add env example + Use env Graphql Uri
1 parent d02ec64 commit 4e715ac

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

backend/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ import { Aliment, AuthPayload } from './schemas'
1515
import { getUser } from './auth'
1616

1717
import * as cors from 'cors'
18-
import { any } from 'prop-types'
19-
import { PrismaClient } from 'nexus-prisma/dist/types'
2018

2119
import PostConnection from './postConnection'
2220

frontend/.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
REACT_APP_GRAPHQL_URI=http://localhost:4000/graphql
2+
FIREBASE_TOKEN=**********

frontend/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const client = new ApolloClient({
9090
cache,
9191
}),
9292
new HttpLink({
93-
uri: 'http://localhost:4000/graphql',
93+
uri: process.env.REACT_APP_GRAPHQL_URI || 'http://localhost:4000/graphql',
9494
// credentials: 'include' TODO: what is include
9595
}),
9696
]),

0 commit comments

Comments
 (0)