Repository navigation
Fix build and lint warnings - #124
Conversation
eacb9f3 to
154607c
Compare
|
Opted to replace the module declaration of RtcManager in favour of an interface over adding the module as an external in the Rollup build. Mainly because the module RtcManager has never existed in jslib-media 😄 |
nandito
left a comment
There was a problem hiding this comment.
Probably related to a previous PR, but passing the env vars to my sample app does not work as before.
REACT_APP_API_BASE_URL=https://<my-local>:4090
REACT_APP_SIGNAL_BASE_URL=wss://<my-local>:4070 PORT=3001 yarn start
previously: it used the provided api and signal endpoints
now: it ignores these env vars and use prod endpoints
Ive just rebased on development (which included the .env fix) and force pushed. Can you test now? |
|
wait, forget me. I just installed again and now it seems to work |
154607c to
ba41c0b
Compare
I pulled your latest changes but still can't override the defaults with env vars. They work in the browser-sdk repo's dotenv file, but don't work in my external test app when I define those vars in the cli command. The variables are passed and visible in the sdk, but not used. Adding this to console.log({
API_BASE_URL,
SIGNAL_BASE_URL,
"process.env": process.env,
});I get:
If I try to log the envs directly, like: console.log({
"process.env.REACT_APP_API_BASE_URL": process.env.REACT_APP_API_BASE_URL,
"process.env.REACT_APP_SIGNAL_BASE_URL": process.env.REACT_APP_SIGNAL_BASE_URL,
});I get this build error: Probably because rollup aggressively replaces every occurrences of this But console.log({
API_BASE_URL,
SIGNAL_BASE_URL,
"process.env": process.env,
"process.env[\"REACT_APP_API_BASE_URL\"]": process.env["REACT_APP_API_BASE_URL"],
"process.env[\"REACT_APP_SIGNAL_BASE_URL\"]": process.env["REACT_APP_SIGNAL_BASE_URL"],
"_process.env.REACT_APP_API_BASE_URL": process.env.REACT_APP_API_BASE_URL,
"_process.env.REACT_APP_SIGNAL_BASE_URL": process.env.REACT_APP_SIGNAL_BASE_URL,
});Shows:
So wdyt about replacing these lines? https://github.com/whereby/browser-sdk/pull/122/files#diff-acfa4c0c627b7b13abb7d70d6d18f9e335e992d0ae69814600c490c306da5481R176 |
Fixes some noise in the console, removes Vite-specific hack from README.
ba41c0b to
ffc1936
Compare
|
Running in the browser-sdk folder creates a build I can use against local stack in my test app. So it works for me too. 👏 |





Minor cleanup to remove warnings related to missing types.
Tested like
yarn buildshould not produce any warnings