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

23 lines
1.2 KiB
JavaScript

(async ()=>{
// dynamic import to support ESM-only puppeteer builds
const mod = await import('puppeteer')
const puppeteer = (mod && mod.default) ? mod.default : mod
const chromePath = process.env.CHROME_PATH || '/usr/bin/google-chrome'
const url = process.env.VITE_BROADCASTPANEL_URL || 'https://avanzacast-broadcastpanel.bfzqqk.easypanel.host'
console.log('Using chromePath=', chromePath)
try {
const browser = await puppeteer.launch({ executablePath: chromePath, args: ['--no-sandbox','--disable-setuid-sandbox','--disable-dev-shm-usage','--headless=new'], defaultViewport: { width: 1280, height: 800 }, timeout: 20000 })
const version = await browser.version()
console.log('Browser version:', version)
const page = await browser.newPage()
await page.goto(url, { waitUntil: 'domcontentloaded', timeout: 20000 })
console.log('Page title:', await page.title())
await page.screenshot({ path: 'debug-chrome-screenshot.png', fullPage: true })
console.log('Screenshot saved: debug-chrome-screenshot.png')
await browser.close()
} catch (err) {
console.error('DEBUG-CHROME ERROR:', err && err.stack ? err.stack : err)
process.exit(2)
}
})()