fix vercel errors
This commit is contained in:
parent
dfd6e03ca2
commit
9baa5968c0
|
|
@ -57,7 +57,7 @@ export class VideoChatShape extends BaseBoxShapeUtil<IVideoChatShape> {
|
|||
return props;
|
||||
}
|
||||
|
||||
async generateMeetingToken(roomName: string, isOwner: boolean = false) {
|
||||
async generateMeetingToken(roomName: string) {
|
||||
const workerUrl = import.meta.env.VITE_TLDRAW_WORKER_URL;
|
||||
const apiKey = import.meta.env.VITE_DAILY_API_KEY;
|
||||
|
||||
|
|
@ -167,7 +167,7 @@ export class VideoChatShape extends BaseBoxShapeUtil<IVideoChatShape> {
|
|||
|
||||
// Generate meeting token for the owner
|
||||
// First ensure the room exists, then generate token
|
||||
const meetingToken = await this.generateMeetingToken(roomName, true);
|
||||
const meetingToken = await this.generateMeetingToken(roomName);
|
||||
|
||||
// Store the room URL and token in localStorage
|
||||
localStorage.setItem(storageKey, url);
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ const router = AutoRouter<IRequest, [env: Environment, ctx: ExecutionContext]>({
|
|||
}
|
||||
|
||||
try {
|
||||
const body = await req.json()
|
||||
const body = await req.json() as { room_name: string; properties: any };
|
||||
const response = await fetch('https://api.daily.co/v1/meeting-tokens', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
|
|
@ -381,7 +381,7 @@ const router = AutoRouter<IRequest, [env: Environment, ctx: ExecutionContext]>({
|
|||
}
|
||||
|
||||
try {
|
||||
const body = await req.json()
|
||||
const body = await req.json() as any;
|
||||
const response = await fetch('https://api.daily.co/v1/recordings', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue