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