-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add vercel deployment and readme
- Loading branch information
1 parent
e2dbd49
commit 9d62638
Showing
6 changed files
with
1,908 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ dist-ssr | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
.vercel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## Deploying the Threads Demo | ||
|
||
1. Build and link `stream-chat` and `stream-chat-css` from the `feat/threads-v2` branch | ||
2. Build this demo app: | ||
|
||
```sh | ||
yarn build | ||
``` | ||
|
||
3. Link to the demo Vercel project and pull default environment variables: | ||
|
||
```sh | ||
yarn vercel link --yes --scope getstreamio --project stream-threads-demo | ||
yarn vercel pull | ||
``` | ||
|
||
4. Deploy: | ||
|
||
```sh | ||
yarn vercel deploy | ||
``` | ||
|
||
The deployed app will use the app, user and token specified in Vercel environment variables. You can override these values in URL search params: | ||
|
||
- `key` to override app key | ||
- `uid` to override user id | ||
- `ut` to override token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.