Cesar Mendivil 8b458a3ddf feat: add initial LiveKit Meet integration with utility scripts, configs, and core components
- Add Next.js app structure with base configs, linting, and formatting
- Implement LiveKit Meet page, types, and utility functions
- Add Docker, Compose, and deployment scripts for backend and token server
- Provide E2E and smoke test scaffolding with Puppeteer and Playwright helpers
- Include CSS modules and global styles for UI
- Add postMessage and studio integration utilities
- Update package.json with dependencies and scripts for development and testing
2025-11-20 12:50:38 -07:00

30 lines
1.1 KiB
JavaScript

// diagnostic debug runner
const dotenv = require('dotenv')
const puppeteer = require('puppeteer-core')
dotenv.config()
const ws = process.env.BROWSERLESS_WS || process.env.BROWSERLESS || ''
const url = process.env.VITE_BROADCASTPANEL_URL || 'https://avanzacast-broadcastpanel.bfzqqk.easypanel.host'
console.log('Debug run. BROWSERLESS_WS=', ws)
;(async ()=>{
try {
if (!ws) throw new Error('BROWSERLESS_WS not provided')
console.log('Connecting to browserless...')
const browser = await puppeteer.connect({ browserWSEndpoint: ws, defaultViewport: { width: 1200, height: 900 }, timeout: 15000 })
console.log('Connected. Opening page...')
const page = await browser.newPage()
await page.goto(url, { waitUntil: 'domcontentloaded', timeout: 20000 })
console.log('Page title:', await page.title())
const html = await page.content()
console.log('Page length:', html.length)
await browser.close()
console.log('Done')
} catch (err) {
console.error('DEBUG ERROR:', err && err.stack ? err.stack : err)
process.exit(2)
}
})()