fix vercel errors

This commit is contained in:
Jeff Emmett 2025-08-25 23:46:37 +02:00
parent 0c980f5f48
commit fa2f16c019
2 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ export class VideoChatShape extends BaseBoxShapeUtil<IVideoChatShape> {
return props; return props;
} }
async generateMeetingToken(roomName: string, isOwner: boolean = false) { async generateMeetingToken(roomName: string) {
const workerUrl = import.meta.env.VITE_TLDRAW_WORKER_URL; const workerUrl = import.meta.env.VITE_TLDRAW_WORKER_URL;
const apiKey = import.meta.env.VITE_DAILY_API_KEY; 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 // Generate meeting token for the owner
// First ensure the room exists, then generate token // 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 // Store the room URL and token in localStorage
localStorage.setItem(storageKey, url); localStorage.setItem(storageKey, url);

View File

@ -173,7 +173,7 @@ const router = AutoRouter<IRequest, [env: Environment, ctx: ExecutionContext]>({
} }
try { 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', { const response = await fetch('https://api.daily.co/v1/meeting-tokens', {
method: 'POST', method: 'POST',
headers: { headers: {
@ -381,7 +381,7 @@ const router = AutoRouter<IRequest, [env: Environment, ctx: ExecutionContext]>({
} }
try { try {
const body = await req.json() const body = await req.json() as any;
const response = await fetch('https://api.daily.co/v1/recordings', { const response = await fetch('https://api.daily.co/v1/recordings', {
method: 'POST', method: 'POST',
headers: { headers: {