diff --git a/front/.env.example b/front/.env.example index b4ab84278..deb105c8c 100644 --- a/front/.env.example +++ b/front/.env.example @@ -1 +1 @@ -REACT_APP_API_URL=http://localhost:3000 \ No newline at end of file +REACT_APP_API_URL=http://localhost:8080 \ No newline at end of file diff --git a/front/src/index.tsx b/front/src/index.tsx index 3c13d9d96..2a3c1c11a 100644 --- a/front/src/index.tsx +++ b/front/src/index.tsx @@ -13,11 +13,13 @@ import { setContext } from '@apollo/client/link/context'; import '@emotion/react'; import { ThemeType } from './layout/styles/themes'; -const httpLink = createHttpLink({ uri: process.env.REACT_APP_API_URL }); +const httpLink = createHttpLink({ + uri: `${process.env.REACT_APP_API_URL}/v1/graphql`, +}); const authLink = setContext((_, { headers }) => { return { - headers: headers, + headers: { ...headers, 'x-hasura-admin-secret': 'secret' }, }; });