From a1204cea914d6cd128f9adc9eb53b584019bc3d6 Mon Sep 17 00:00:00 2001 From: SD Date: Fri, 28 Jun 2024 19:36:13 +0400 Subject: [PATCH] fix: fix agora env variable --- Dockerfile | 6 +++--- src/components/Account/agora/Agora.tsx | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) 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, },