diff --git a/apps/client/src/app/app.tsx b/apps/client/src/app/app.tsx index d000a21..1f0fcba 100644 --- a/apps/client/src/app/app.tsx +++ b/apps/client/src/app/app.tsx @@ -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]);