Skip to content

Commit 8f4836a

Browse files
committed
Update deps
1 parent fc13d1f commit 8f4836a

4 files changed

Lines changed: 17 additions & 24 deletions

File tree

translation-demo/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ Install dependencies:
1010
yarn
1111
```
1212

13-
Configure the MoQ relay (required):
13+
Configure the sandbox API URL (required):
1414

1515
```bash
1616
cp .env.example .env
17-
# then set VITE_MOQ_URL and VITE_MOQ_FISHJAM_ID in .env to your MoQ relay URL
17+
# then set VITE_SANDBOX_API_URL in .env to your Fishjam sandbox API URL
1818
```
1919

2020
Start the development server:
@@ -25,4 +25,4 @@ yarn dev
2525

2626
## Environment Variables
2727

28-
- `VITE_MOQ_URL` (required) — URL of the MoQ relay to connect to. The app has no built-in default and will not connect until this is set.
28+
- `VITE_SANDBOX_API_URL` (required) — Fishjam sandbox API URL used to fetch a MoQ relay connection URL. Get it at https://fishjam.io/app/sandbox.

translation-demo/src/hooks/useMoqTokens.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ export const useMoqTokens = () => {
2424
);
2525
}
2626

27-
const { connection_url } =
27+
const { connectionUrl } =
2828
role === "publisher"
2929
? await getSandboxMoqPublisherAccess(tokenStreamName(streamName))
3030
: await getSandboxMoqSubscriberAccess(tokenStreamName(streamName));
3131

32-
return new URL(connection_url);
32+
return new URL(connectionUrl);
3333
},
3434
[getSandboxMoqPublisherAccess, getSandboxMoqSubscriberAccess],
3535
);

translation-demo/vite.config.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
import react from '@vitejs/plugin-react-swc';
22
import path from 'path';
3-
import { defineConfig, loadEnv } from 'vite';
4-
5-
export default defineConfig(({ mode }) => {
6-
const env = loadEnv(mode, process.cwd(), '');
7-
if (!env.VITE_MOQ_URL) {
8-
throw new Error(
9-
'VITE_MOQ_URL is not set — provide the MoQ relay URL in a .env file (see .env.example).',
10-
);
11-
}
3+
import { defineConfig } from 'vite';
124

5+
export default defineConfig(() => {
136
return {
147
plugins: [react()],
158
server: {

translation-demo/yarn.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -201,29 +201,29 @@ __metadata:
201201
languageName: node
202202
linkType: hard
203203

204-
"@fishjam-cloud/react-client@npm:0.28.1":
205-
version: 0.28.1
206-
resolution: "@fishjam-cloud/react-client@npm:0.28.1"
204+
"@fishjam-cloud/react-client@npm:0.28.2":
205+
version: 0.28.2
206+
resolution: "@fishjam-cloud/react-client@npm:0.28.2"
207207
dependencies:
208-
"@fishjam-cloud/ts-client": "npm:0.28.1"
208+
"@fishjam-cloud/ts-client": "npm:0.28.2"
209209
events: "npm:3.3.0"
210210
lodash.isequal: "npm:4.5.0"
211211
peerDependencies:
212212
react: ^19.1.0
213-
checksum: 10c0/8a7ebf3c78d8fb687d628b65ce3f4824b2817cb5bba317b5edd74e484012c6eda5eff2ce961029ef5aa9f5307047ed4b5841657a7daec90d5147c4894966b0a4
213+
checksum: 10c0/4211f759a08ff349a9d137d3f123f83ac4335427c8b75c028528356bc7a56e9358c426af69906345dabcea055ad542c533e5e62b551425feedd625f22ef35843
214214
languageName: node
215215
linkType: hard
216216

217-
"@fishjam-cloud/ts-client@npm:0.28.1":
218-
version: 0.28.1
219-
resolution: "@fishjam-cloud/ts-client@npm:0.28.1"
217+
"@fishjam-cloud/ts-client@npm:0.28.2":
218+
version: 0.28.2
219+
resolution: "@fishjam-cloud/ts-client@npm:0.28.2"
220220
dependencies:
221221
"@binbat/whip-whep": "npm:^1.1.1-sdp-trickle-throw"
222222
"@bufbuild/protobuf": "npm:^2.2.3"
223223
events: "npm:^3.3.0"
224224
typed-emitter: "npm:^2.1.0"
225225
uuid: "npm:^11.1.0"
226-
checksum: 10c0/52d83e6e9ec68660c0dd92abdae5296bd23298297c8ce6bb8cab2c2ebf1601fae66e54a17c67454b5794147fd2e210d2ca73a6beb6e9c9f843e1671f41cfca73
226+
checksum: 10c0/42b40f82752f951bf623ad76ba2cfbe3916c7c57498c8631bbc4f0e436ed5e059ea4f859597df9d4fa8f0377b177cf6666908e47587406b4d9eeaacb6275e167
227227
languageName: node
228228
linkType: hard
229229

@@ -454,7 +454,7 @@ __metadata:
454454
version: 0.0.0-use.local
455455
resolution: "@moq/translation-demo@workspace:."
456456
dependencies:
457-
"@fishjam-cloud/react-client": "npm:0.28.1"
457+
"@fishjam-cloud/react-client": "npm:0.28.2"
458458
"@moq/publish": "npm:0.2.15"
459459
"@moq/signals": "npm:0.1.9"
460460
"@moq/watch": "npm:0.2.17"

0 commit comments

Comments
 (0)