Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Nov 20, 2023
1 parent ee41dca commit d341fd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/src/basic/Login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
import Config from '../../config/agora.config';
import { useRtmClient } from '../../hooks/useRtmClient';
import * as log from '../../utils/log';
console.log(Config);
log.alert(JSON.stringify(Config));

export default function Login() {
const [uid, setUid] = useState(Config.uid);
Expand Down
7 changes: 5 additions & 2 deletions example/src/config/agora.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import * as log from '../utils/log';

let env: any = '';
let localAppId = '';
try {
env = require('./env_local').default;
console.log('appID', localAppId);
} catch (error) {
console.warn(error);
}
console.log(env);
log.alert(JSON.stringify(env));
log.alert(localAppId);

const config = {
// Get your own App ID at https://dashboard.agora.io/
appId: localAppId || env.appId,
Expand Down

0 comments on commit d341fd9

Please sign in to comment.