From 6f86007632c7c9b300c285dbe340094ac1298b88 Mon Sep 17 00:00:00 2001 From: Sorrel Bri Date: Sat, 18 Jan 2020 00:38:02 -0800 Subject: [PATCH] patch config for production --- .../packages/play-node-go/play-node-go/src/config.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/server/packages/play-node-go/play-node-go/src/config.js b/packages/server/packages/play-node-go/play-node-go/src/config.js index 754062c..c185f99 100644 --- a/packages/server/packages/play-node-go/play-node-go/src/config.js +++ b/packages/server/packages/play-node-go/play-node-go/src/config.js @@ -2,15 +2,17 @@ import runtimeEnv from '@mars/heroku-js-runtime-env'; const env = runtimeEnv(); const production = { - apiAddress: 'https://node-go-api.herokuapp.com', - endpoint: 'https://play-node-go.herokuapp.com' + apiAddress: 'https://node-go-api.herokuapp.com/api/v1', + endpoint: 'https://play-node-go.herokuapp.com', + authAddress: 'https://play-node-go.herokuapp.com', + socketAddress: 'https://node-go-api.herokuapp.com' } const development = { - authAddress: 'http://localhost:8000/auth', apiAddress: 'http://localhost:8000/api/v1', - socketAddress: 'http://localhost:8000', - endpoint: 'http://localhost:3000' + authAddress: 'http://localhost:8000/auth', + endpoint: 'http://localhost:3000', + socketAddress: 'http://localhost:8000' } const config = env.REACT_APP_ENVIRONMENT === 'production'