diff --git a/.circleci/config.yml b/.circleci/config.yml index 2e34d27..ee0ad8b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,11 +7,11 @@ jobs: - checkout - restore_cache: keys: - - yarn-packages-{{ checksum "yarn.lock" }}--{{ .Environment.CACHE_VERSION }} + - yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }} - yarn-packages - run: yarn global add node-gyp && yarn install - save_cache: - key: yarn-packages-{{ checksum "yarn.lock" }}--{{ .Environment.CACHE_VERSION }} + key: yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }} paths: - node_modules test: @@ -21,7 +21,7 @@ jobs: - checkout - restore_cache: keys: - - yarn-packages-{{ checksum "yarn.lock" }}--{{ .Environment.CACHE_VERSION }} + key: yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }} - run: - name: Start test - command : yarn test @@ -32,7 +32,7 @@ jobs: - checkout - restore_cache: keys: - - yarn-packages-{{ checksum "yarn.lock" }}--{{ .Environment.CACHE_VERSION }} + - yarn-packages-{{ checksum "yarn.lock" }}-{{ .Environment.CACHE_VERSION }} - run: - name: Build the project - command : yarn run build @@ -59,7 +59,7 @@ jobs: command: | sudo npm install -g --silent netlify-cli ls /tmp - netlify deploy --prod --auth $NETLIFY_AUTH_TOKEN --dir=/tmp/build --site $NETLIFY_SITE_ID + netlify deploy --prod --auth $NETLIFY_TOKEN --dir=/tmp/build --site $NETLIFY_SITE_ID workflows: build_deploy: jobs: diff --git a/.gitignore b/.gitignore index 863c1df..2512fa3 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,6 @@ yarn-error.log* # Coverage Reports coverage + +# Local Netlify folder +.netlify \ No newline at end of file diff --git a/src/common/config.js b/src/common/config.js index bc3dc53..71b53a0 100644 --- a/src/common/config.js +++ b/src/common/config.js @@ -1,5 +1,5 @@ export const API_URL = process.env.NODE_ENV === "production" - ? "https://tobedefined.io/api" + ? process.env.PROD_BACK_URL || "URL_HERE" : "http://localhost:2020/api"; export default API_URL;