Skip to content

Commit

Permalink
fix envs for huly-stream app for local dev (#8171)
Browse files Browse the repository at this point in the history
Signed-off-by: denis-tingaikin <[email protected]>
  • Loading branch information
denis-tingaikin authored Mar 7, 2025
1 parent e8f32c4 commit 877ca8e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
"ELASTIC_INDEX_NAME": "local_storage_index",
"UPLOAD_URL": "/files",
"AI_BOT_URL": "http://localhost:4010",
"STATS_URL": "http://huly.local:4900"
"STATS_URL": "http://huly.local:4900",
"STREAM_URL": "http://huly.local:1080/recording"
},
"runtimeArgs": ["--nolazy", "-r", "ts-node/register"],
"runtimeVersion": "20",
Expand Down
1 change: 1 addition & 0 deletions dev/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ services:
- DESKTOP_UPDATES_URL=https://dist.huly.io
- DESKTOP_UPDATES_CHANNEL=dev
- BRANDING_URL=http://huly.local:8087/branding.json
- STREAM_URL=http://huly.local:1080/recording
# - DISABLE_SIGNUP=true
restart: unless-stopped
transactor:
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/HlsVideo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
playlistLoadPolicy: loadPolicy,
autoStartLoad: preload,
xhrSetup: (xhr, url) => {
xhr.withCredentials = true
const urlObj = new URL(url)
if (urlObj.searchParams.size > 1) {
return
Expand All @@ -73,6 +72,7 @@
if (workspace == null) {
return
}
xhr.withCredentials = true
const fileName = urlObj.href.substring(urlObj.href.lastIndexOf('/') + 1)
urlObj.searchParams.append('file', fileName)
urlObj.searchParams.append('workspace', workspace)
Expand Down

0 comments on commit 877ca8e

Please sign in to comment.