chore: apollo client config and deploy

This commit is contained in:
AP 2020-02-01 09:09:51 +01:00
parent d8c7f7af76
commit 65ecf08c74
2 changed files with 6 additions and 2 deletions

View file

@ -55,7 +55,8 @@
"test": "react-scripts test",
"eject": "react-scripts eject",
"storybook": "start-storybook -p 9009 -s public",
"build-storybook": "build-storybook -s public"
"build-storybook": "build-storybook -s public",
"deploy": "yarn build && aws s3 --profile EBFullAccess sync build/ s3://thunderhub-client"
},
"eslintConfig": {
"extends": "react-app"

View file

@ -29,7 +29,10 @@ toast.configure({
});
const client = new ApolloClient({
uri: 'http://localhost:3001',
uri:
process.env.NODE_ENV === 'development'
? 'http://localhost:3001'
: 'https://api.thunderhub.io/',
});
const ContextApp: React.FC = () => {