diff --git a/Dockerfile b/Dockerfile index 2e74df7..725fe3a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 . . diff --git a/src/components/Account/agora/Agora.tsx b/src/components/Account/agora/Agora.tsx index ec6b7bd..6be491d 100644 --- a/src/components/Account/agora/Agora.tsx +++ b/src/components/Account/agora/Agora.tsx @@ -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, },