mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-22 22:25:21 +01:00
chore: apollo client config and deploy
This commit is contained in:
parent
d8c7f7af76
commit
65ecf08c74
2 changed files with 6 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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 = () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue