Skip to content

Commit 14ade2f

Browse files
committed
fix devlopment fail issue
1 parent 970eaed commit 14ade2f

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

frontend/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
5+
<link rel="icon" href="/favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Vite + React</title>
7+
<title>Expense Tracker</title>
88
</head>
99
<body>
1010
<div id="root"></div>

frontend/public/favicon.ico

2.53 KB
Binary file not shown.

frontend/public/vite.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

frontend/src/main.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { ApolloClient, InMemoryCache, ApolloProvider } from "@apollo/client";
88

99
const client = new ApolloClient({
1010
// TODO => Update the uri on production
11-
uri: import.meta.env.VITE_NODE_ENV === "development" ? "http://localhost:4000/graphql" : "/graphql", // the URL of our GraphQL server.
11+
uri: import.meta.env.VITE_NODE_ENV === "development" ? "http://localhost:4000/graphql" : "https://expense-tracker-pur1.onrender.com/graphql", // the URL of our GraphQL server.
1212
cache: new InMemoryCache(), // Apollo Client uses to cache query results after fetching them.
1313
credentials: "include", // This tells Apollo Client to send cookies along with every request to the server.
1414
});

0 commit comments

Comments
 (0)