Skip to content

Commit

Permalink
Fix incorrect gql url in production
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbert committed Jun 27, 2024
1 parent b8cf8dc commit ede9bb6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/client/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export function BaseApp() {

export function App() {
const httpLink = new HttpLink({
uri: 'http://localhost:3000/graphql',
uri:
process.env.NODE_ENV === 'development'
? 'http://localhost:3000/graphql'
: '/graphql',
});
const removeTypenameLink = removeTypenameFromVariables();
const link = from([removeTypenameLink, httpLink]);
Expand Down

0 comments on commit ede9bb6

Please sign in to comment.