Skip to content

Commit

Permalink
add prefix to env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
flowersayo committed May 8, 2023
1 parent 02ac2ed commit 7d74d52
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions client/src/pages/LandingPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ function LoginBox() {

var body = {
grant_type: "",
username: process.env.RPS_USERNAME,
password: process.env.RPS_PASSWORD,
username: process.env.REACT_APP_RPS_USERNAME,
password: process.env.REACT_APP_RPS_PASSWORD,
scope: "",
client_id: "",
client_secret: "",
Expand All @@ -77,7 +77,7 @@ function LoginBox() {
try {
/*비동기 요청*/
const response = await axios.post(
`${process.env.RPS_BASE_SERVER_URL}/token`,
`${process.env.REACT_APP_RPS_BASE_SERVER_URL}/token`,
qs.stringify(body),
{
headers: {
Expand Down
6 changes: 3 additions & 3 deletions client/src/pages/MobileLandingScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ function LoginBox() {
console.log("요청!");
var body = {
grant_type: "",
username: process.env.RPS_USERNAME,
password: process.env.RPS_PASSWORD,
username: process.env.REACT_APP_RPS_USERNAME,
password: process.env.REACT_APP_RPS_PASSWORD,
scope: "",
client_id: "",
client_secret: "",
Expand All @@ -141,7 +141,7 @@ function LoginBox() {
try {
/*비동기 요청*/
const response = await axios.post(
`${process.env.RPS_BASE_SERVER_URL}/token`,
`${process.env.REACT_APP_RPS_BASE_SERVER_URL}/token`,
qs.stringify(body),
{
headers: {
Expand Down
2 changes: 1 addition & 1 deletion client/src/utils/WebSocketProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const WebsocketProvider = ({ children }) => {
console.log(token);

const socket = new WebSocket(
`${process.env.RPS_BASE_WEBSOCKET_URL}/signin?name=${name}&token=${token}`
`${process.env.REACT_APP_RPS_BASE_WEBSOCKET_URL}/signin?name=${name}&token=${token}`
);

socket.onopen = (event) => {
Expand Down

0 comments on commit 7d74d52

Please sign in to comment.