From 8edd30e26637e9110e8d190e301419788d04e615 Mon Sep 17 00:00:00 2001 From: ShahzaibAwan Date: Wed, 18 Jan 2023 05:07:39 +0500 Subject: [PATCH] Add env config for sensitive info --- README.md | 4 ++-- config/deploy.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5b0627469c..8437e27434 100644 --- a/README.md +++ b/README.md @@ -126,8 +126,8 @@ strategy” of deploying assets to S3 and `index.html` to a Redis server. You ca deploy from your own machine too. First, update your `.env` file with the following variables: ``` -AWS_KEY=key -AWS_SECRET=secret +TRAVIS_S3_ACCESS_KEY_ID=key +TRAVIS_S3_SECRET_ACCESS_KEY=secret ``` Then run: diff --git a/config/deploy.js b/config/deploy.js index c98c35164c..380cf6b16e 100644 --- a/config/deploy.js +++ b/config/deploy.js @@ -20,8 +20,8 @@ module.exports = function (deployTarget) { }, s3: { region: 'eu-west-1', - accessKeyId: process.env.AWS_KEY, - secretAccessKey: process.env.AWS_SECRET + accessKeyId: process.env.TRAVIS_S3_ACCESS_KEY_ID, + secretAccessKey: process.env.TRAVIS_S3_SECRET_ACCESS_KEY } };