CD — Kai-Sa-Cam Deployment / deploy (push) Successful in 9s
- move sources, Dockerfile and build config (src, public, package.json, vite/tailwind/postcss/tsconfig, index.html) to the repo root - docker-compose: build context is now "." instead of ./apps/kai-sa-cam - add a .dockerignore (node_modules, dist, media, config, .env, ...) so the larger build context does not ship media, secrets or local node_modules into the image - deploy workflow: replace the apps/kai-sa-cam/** paths filter with paths-ignore so pushes keep triggering deployments - remove the Renovate workflow
27 lines
568 B
TypeScript
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',
|
|
},
|
|
},
|
|
}) |