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

51 lines
1.6 KiB
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
export default defineConfig(({ mode }) => ({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
'@shared': path.resolve(__dirname, '../../shared'),
'@avanza-ui': path.resolve(__dirname, '../avanza-ui/src'),
// Monorepo package aliases
'@avanzacast/shared-hooks': path.resolve(__dirname, '../../shared/hooks'),
'@avanzacast/shared-components': path.resolve(__dirname, '../../shared/components'),
'@avanzacast/shared-utils': path.resolve(__dirname, '../../shared/utils'),
'@avanzacast/shared-types': path.resolve(__dirname, '../../shared/types'),
},
},
optimizeDeps: {
// Pre-bundle shared packages so Vite can resolve them during dev
include: [
'@avanzacast/shared-hooks',
'@avanzacast/shared-components',
'@avanzacast/shared-utils',
'@avanzacast/shared-types',
],
},
server: {
port: 5175,
host: true,
fs: {
// allow serving files from the monorepo root and shared folder
allow: [path.resolve(__dirname, '../../')],
},
proxy: {
// Proxy API calls to local backend during development
'/api': {
target: process.env.VITE_API_URL || 'http://localhost:4000',
changeOrigin: true,
secure: false,
rewrite: (p) => p.replace(/^\/api/, '/api'),
},
},
// Allowlist hosts for preview/remote access
allowedHosts: [
'avanzacast-broadcastpanel.bfzqqk.easypanel.host',
'localhost',
],
},
}))