- Vite + React + Tailwind SPA reading from PocketBase - Realtime subscriptions on workflows + executions collections - Coolify-ready Dockerfile (multi-stage node build → nginx serve) - PocketBase URL configurable via VITE_POCKETBASE_URL build arg - Schema import (workflows, executions) included
27 lines
605 B
TypeScript
27 lines
605 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import path from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
// Vite dev server port. User already runs other apps on 3000, so we default to 5173 (Vite's standard).
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, 'src'),
|
|
},
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
strictPort: false,
|
|
},
|
|
preview: {
|
|
port: 5173,
|
|
},
|
|
build: {
|
|
outDir: 'dist',
|
|
sourcemap: true,
|
|
},
|
|
});
|