fix: fix agora env variable

This commit is contained in:
SD 2024-06-28 19:36:13 +04:00
parent ab5bd5fe2b
commit a1204cea91
2 changed files with 4 additions and 6 deletions

View File

@ -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 . .

View File

@ -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,
},