fix: fix agora env variable
This commit is contained in:
parent
ab5bd5fe2b
commit
a1204cea91
|
@ -1,15 +1,15 @@
|
|||
FROM node:20.10.0 as dependencies
|
||||
FROM node:lts as dependencies
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --verbose
|
||||
|
||||
FROM node:20.10.0 as builder
|
||||
FROM node:lts as builder
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
COPY --from=dependencies /app/node_modules ./node_modules
|
||||
RUN npm run build --debug --verbose
|
||||
|
||||
FROM node:20.10.0 as runner
|
||||
FROM node:lts as runner
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
|
|
|
@ -6,8 +6,6 @@ import { MediaControl } from './view';
|
|||
import { LocalUserPanel, RemoteUserPanel } from './components';
|
||||
import { PublicUser } from '../../../types/sessions';
|
||||
|
||||
// const appId = process.env.AGORA_APPID;
|
||||
|
||||
type AgoraProps = {
|
||||
sessionId: number;
|
||||
secret?: string;
|
||||
|
@ -26,7 +24,7 @@ export const Agora = ({ sessionId, secret, stopCalling, remoteUser }: AgoraProps
|
|||
|
||||
useJoin(
|
||||
{
|
||||
appid: 'ed90c9dc42634e5687d4e2e0766b363f',
|
||||
appid: process.env.NEXT_PUBLIC_AGORA_APPID,
|
||||
channel: `${sessionId}-${secret}`,
|
||||
token: null,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue