Skip to content

Commit

Permalink
🐛 fix graphql endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
EmrysMyrddin committed Oct 9, 2022
1 parent 9417f85 commit 7b86cc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "mon-app-test",
"version": "0.1.0",
"private": true,
"proxy": "http://localhost:8080",
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@testing-library/jest-dom": "^5.16.4",
Expand Down
3 changes: 1 addition & 2 deletions app/src/data/client.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { createClient } from "urql"

export const client = createClient({
// url: process.env.REACT_APP_GRAPHQL_ENDPOINT || "http://localhost:8080/v1/graphql",
url: process.env.GRAPHQL_ENDPOINT || "http://192.168.1.48:8080/v1/graphql",
url: process.env.REACT_APP_GRAPHQL_ENDPOINT || "/v1/graphql",
fetchOptions: () => {
const headers = localStorage.token ? { authorization: `Bearer ${localStorage.token}` } : null
return {
Expand Down

0 comments on commit 7b86cc2

Please sign in to comment.