From 928e7d438fbb1c5d9906486e9af7ae62cbadae9f Mon Sep 17 00:00:00 2001 From: Nicholas Zuber Date: Wed, 7 Nov 2018 22:55:34 -0500 Subject: [PATCH 1/2] Redirect URI for prod --- package.json | 6 ++++-- src/components/buttons/AuthenticationButton.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4cd3fe3..4ce6d78 100644 --- a/package.json +++ b/package.json @@ -62,8 +62,10 @@ }, "scripts": { "start": "node scripts/start.js", - "build": "node scripts/build.js", - "test": "node scripts/test.js" + "build": "node scripts/build.js && cp build/index.html build/200.html", + "test": "node scripts/test.js", + "predeploy": "npm run build", + "deploy": "gh-pages -d build" }, "eslintConfig": { "extends": "react-app" diff --git a/src/components/buttons/AuthenticationButton.js b/src/components/buttons/AuthenticationButton.js index b64ad88..cedb13b 100644 --- a/src/components/buttons/AuthenticationButton.js +++ b/src/components/buttons/AuthenticationButton.js @@ -1,7 +1,7 @@ import React from 'react'; const CLIENT_ID = '9478c90e57ef3d546ef0'; -const REDIRECT_URI = 'http://localhost:9008/login'; +const REDIRECT_URI = 'https://meteorite.surge.sh/login'; const SCOPES = 'notifications'; const AuthenticationButton = props => ( From dfb2bff3186116bd89bb39dc78c7490c9f44ea21 Mon Sep 17 00:00:00 2001 From: Nicholas Zuber Date: Wed, 7 Nov 2018 23:00:45 -0500 Subject: [PATCH 2/2] Remove unused scripts --- package.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package.json b/package.json index 4ce6d78..3be2c8d 100644 --- a/package.json +++ b/package.json @@ -63,9 +63,7 @@ "scripts": { "start": "node scripts/start.js", "build": "node scripts/build.js && cp build/index.html build/200.html", - "test": "node scripts/test.js", - "predeploy": "npm run build", - "deploy": "gh-pages -d build" + "test": "node scripts/test.js" }, "eslintConfig": { "extends": "react-app"