File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1+ NEXT_PUBLIC_APP_ID = " <APP_ID>"
Original file line number Diff line number Diff line change @@ -15,9 +15,10 @@ To run this tutorial, you will need:
1515## How to run the tutorial
1616
17171 . Clone or download the project.
18- 2 . Replace ` <APP_ID> ` in ` app/page.js ` with the value found in the ** Settings** tab of your [ TalkJS dashboard] ( https://talkjs.com/dashboard/login ) .
19- 3 . Run ` npm install ` to install dependencies.
20- 4 . Run ` npm run dev ` to start the server.
21- 5 . Visit < http://localhost:3000 > .
18+ 2 . Copy ` .env.example ` to a new ` .env ` file.
19+ 3 . Replace ` <APP_ID> ` in ` .env ` with the value found in the ** Settings** tab of your [ TalkJS dashboard] ( https://talkjs.com/dashboard/login ) .
20+ 4 . Run ` npm install ` to install dependencies.
21+ 5 . Run ` npm run dev ` to start the server.
22+ 6 . Visit < http://localhost:3000 > .
2223
2324You should see a page which loads a chatbox on startup.
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function Chat() {
3838 } , [ ] ) ;
3939
4040 return (
41- < Session appId = "<APP_ID>" syncUser = { syncUser } >
41+ < Session appId = { process . env . NEXT_PUBLIC_APP_ID } syncUser = { syncUser } >
4242 < Chatbox
4343 syncConversation = { syncConversation }
4444 style = { { width : "100%" , height : "500px" } }
You can’t perform that action at this time.
0 commit comments