Skip to content

Commit 4fca5c8

Browse files
committed
env vars for react
1 parent 1490f90 commit 4fca5c8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

client-react/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
REACT_APP_CHAT_ENGINE_PROJECT_ID=5d498a31-cd23-42b7-b367-4fcc9463bd2f
1+
REACT_APP_CHAT_ENGINE_PROJECT_ID=794653df-052a-4ad2-b0aa-d6c251a10aef

client-react/src/chatsPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const ChatsPage = (props) => {
44
return (
55
<div style={{ height: "100vh", width: "100vw" }}>
66
<PrettyChatWindow
7-
projectId="5d498a31-cd23-42b7-b367-4fcc9463bd2f"
7+
projectId={process.env.REACT_APP_CHAT_ENGINE_PROJECT_ID}
88
username={props.user.username} // adam
99
secret={props.user.secret} // pass1234
1010
style={{ height: "100%" }}

0 commit comments

Comments
 (0)