Files
Kai-Sa-Cam/apps/kai-sa-cam/vite.config.ts
T
Esiah 73394dfbbc
CD — Kai-Sa-Cam Deployment / deploy (push) Canceled after 0s
feat: restructure to kai-sa-cam layout with apps/ structure
2026-10-25 01:06:31 +02:00

27 lines
568 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
import { fileURLToPath } from 'url'
const __dirname = path.dirname(fileURLToPath(import.meta.url))
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
build: {
outDir: 'dist',
sourcemap: true,
},
server: {
port: 5173,
proxy: {
'/api': 'http://localhost:8090',
'/ws': 'http://localhost:8090',
'/go2rtc': 'http://localhost:1984',
},
},
})