From fb65a41dea91570c8aeb232737acccdd3d406fdd Mon Sep 17 00:00:00 2001 From: kinou-p Date: Thu, 15 Jun 2023 18:28:04 +0200 Subject: [PATCH] auto push --- containers/react/src/script/tokenSuccess.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/react/src/script/tokenSuccess.js b/containers/react/src/script/tokenSuccess.js index 87686fca..e8756513 100644 --- a/containers/react/src/script/tokenSuccess.js +++ b/containers/react/src/script/tokenSuccess.js @@ -7,7 +7,7 @@ function SuccessToken() { const cleanData = data.slice(1, -1); localStorage.setItem('token', `${cleanData}`); console.log(`prout token2= ${localStorage.getItem('token')}`) - window.location.replace("http://localhost/pong"); + window.location.replace("http://" + process.env.REACT_APP_BASE_URL + "/pong"); } export default SuccessToken; \ No newline at end of file